Skip to content

Commit

Permalink
Refactoring binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroc0d3 committed Oct 24, 2023
1 parent 2ffa783 commit b5cb8a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
```

Expand Down
2 changes: 1 addition & 1 deletion src/features/menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/singleton/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5cb8a2

Please sign in to comment.