diff --git a/README.md b/README.md index 70ac0a1..704c78d 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Customize Kubernetes Change Context (KUBECONFIG) [[ K8S-CONTEXT (K8C) ]] - v1.1.9 =================================== Usage: - k8s-context [command] + k8c [command] Available Commands: completion Generate the autocompletion script for the specified shell @@ -86,7 +86,7 @@ Flags: -h, --help help for k8s-context --kubeconfig string Path to kubeconfig file (default "/home/devopscorner/.kube/config") -Use "k8s-context [command] --help" for more information about a command. +Use "k8c [command] --help" for more information about a command. ``` diff --git a/src/features/menus.go b/src/features/menus.go index f628457..7d8ae87 100644 --- a/src/features/menus.go +++ b/src/features/menus.go @@ -551,7 +551,7 @@ func GetCommands() []*cobra.Command { switchContextCmd.Flags().StringVarP(&loadFile, "file", "f", "", "Using spesific kubeconfig file") - rootCmd := &cobra.Command{Use: "k8s-context"} + rootCmd := &cobra.Command{Use: "k8c"} rootCmd.PersistentFlags().StringVar(&kubeconfig, "kubeconfig", kubeconfig, "Path to kubeconfig file") rootCmd.AddCommand(versionCmd, getCmd, listContextsCmd, loadCmd, mergeCmd, showCmd, switchContextCmd) diff --git a/src/singleton/main.go b/src/singleton/main.go index 6e7df35..967f608 100644 --- a/src/singleton/main.go +++ b/src/singleton/main.go @@ -1305,7 +1305,7 @@ func GetCommands() []*cobra.Command { switchContextCmd.Flags().StringVarP(&loadFile, "file", "f", "", "Using spesific kubeconfig file") - rootCmd := &cobra.Command{Use: "k8s-context"} + rootCmd := &cobra.Command{Use: "k8c"} rootCmd.PersistentFlags().StringVar(&kubeconfig, "kubeconfig", kubeconfig, "Path to kubeconfig file") rootCmd.AddCommand(versionCmd, getCmd, listContextsCmd, loadCmd, mergeCmd, showCmd, switchContextCmd)