diff --git a/cmd/get.go b/cmd/get.go index 80734ef..e124f12 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -10,17 +10,17 @@ import ( var ( getCmd = &cobra.Command{ - Use: "get", + Use: "get", Aliases: []string{"g", "current"}, - Short: "Get current context or namespace", + Short: "Get current context or namespace", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Please specify a subcommand. Use --help for more details.") }, } namespaceGetCmd = &cobra.Command{ - Use: "namespace", + Use: "namespace", Aliases: []string{"ns", "namespaces"}, - Short: "get namespace", + Short: "get namespace", Run: func(cmd *cobra.Command, args []string) { debug, _ := cmd.Flags().GetBool("debug") common.SetDebug(debug) @@ -28,9 +28,9 @@ var ( }, } contextGetCmd = &cobra.Command{ - Use: "context", + Use: "context", Aliases: []string{"ctx", "contexts"}, - Short: "get a context", + Short: "get a context", Run: func(cmd *cobra.Command, args []string) { debug, _ := cmd.Flags().GetBool("debug") common.SetDebug(debug) diff --git a/cmd/list.go b/cmd/list.go index 22b437b..46a852a 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -10,18 +10,18 @@ import ( var ( listCmd = &cobra.Command{ - Use: "list", + Use: "list", Aliases: []string{"l", "ls"}, - Short: "List all contexts or namespaces", + Short: "List all contexts or namespaces", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Please specify a subcommand. Use --help for more details.") }, } namespaceListCmd = &cobra.Command{ - Use: "namespace", + Use: "namespace", Aliases: []string{"ns", "namespaces"}, - Short: "list namespace", + Short: "list namespace", Run: func(cmd *cobra.Command, args []string) { debug, _ := cmd.Flags().GetBool("debug") common.SetDebug(debug) @@ -29,9 +29,9 @@ var ( }, } contextListCmd = &cobra.Command{ - Use: "context", + Use: "context", Aliases: []string{"ctx", "contexts"}, - Short: "list a context", + Short: "list a context", Run: func(cmd *cobra.Command, args []string) { debug, _ := cmd.Flags().GetBool("debug") common.SetDebug(debug) diff --git a/cmd/set.go b/cmd/set.go index 2a1fb7b..1145c79 100644 --- a/cmd/set.go +++ b/cmd/set.go @@ -11,17 +11,17 @@ import ( var ( debug = false setCmd = &cobra.Command{ - Use: "set", + Use: "set", Aliases: []string{"s", "switch"}, - Short: "Set context or namespace", + Short: "Set context or namespace", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Please specify a subcommand. Use --help for more details.") }, } namespaceSetCmd = &cobra.Command{ - Use: "namespace", + Use: "namespace", Aliases: []string{"ns", "namespaces"}, - Short: "set namespace", + Short: "set namespace", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Println("Please specify a single namespace") @@ -39,9 +39,9 @@ var ( }, } contextSetCmd = &cobra.Command{ - Use: "context", + Use: "context", Aliases: []string{"ctx", "contexts"}, - Short: "set a context", + Short: "set a context", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Println("Please specify a single context")