This commit is contained in:
@@ -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.`,
|
||||
|
||||
@@ -16,6 +16,7 @@ const (
|
||||
|
||||
var ServerCmd = &cobra.Command{
|
||||
Use: "server",
|
||||
Aliases: []string{"s"},
|
||||
Example: "mctl server <subcommand>",
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user