adding subcommand aliases
All checks were successful
code scans / scans (push) Successful in 20s

This commit is contained in:
2025-11-26 13:13:00 -05:00
parent 64a0f7422a
commit 479204cb42
9 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ import (
var addCmd = &cobra.Command{
Use: "add",
Aliases: []string{"a"},
Example: "mctl server add",
Short: "Saves a new server configuration",
Long: `Saves server address, alias, port, and password to the database.`,

View File

@@ -16,6 +16,7 @@ const (
var ServerCmd = &cobra.Command{
Use: "server",
Aliases: []string{"s"},
Example: "mctl server <subcommand>",
}

View File

@@ -16,6 +16,7 @@ import (
var updateCmd = &cobra.Command{
Use: "update",
Aliases: []string{"u"},
Example: "mctl server update <name>",
Short: "updates a saved servers password in the database",
SilenceUsage: true,

View File

@@ -15,6 +15,7 @@ var decode bool
var viewCmd = &cobra.Command{
Use: "view",
Aliases: []string{"v"},
Example: "mctl server view",
Short: "view all saved servers",
SilenceUsage: true,