Skip to content

Commit

Permalink
Update doc with cmd alias (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw99 committed Aug 22, 2022
1 parent ac102b2 commit 69eeeb5
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Available Commands:
add Add KubeConfig to $HOME/.kube/config
alias Generate alias for all contexts
clear Clear lapsed context, cluster and user
cloud manage kubeconfig from cloud
cloud Manage kubeconfig from cloud
completion Generate completion script
create Create new KubeConfig(experiment)
delete Delete the specified context from the kubeconfig
Expand Down
7 changes: 4 additions & 3 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ type KubeConfigOption struct {
// Init AddCommand
func (ac *AddCommand) Init() {
ac.command = &cobra.Command{
Use: "add",
Short: "Add KubeConfig to $HOME/.kube/config",
Long: "Add KubeConfig to $HOME/.kube/config",
Use: "add",
Short: "Add KubeConfig to $HOME/.kube/config",
Long: "Add KubeConfig to $HOME/.kube/config",
Aliases: []string{"a"},
RunE: func(cmd *cobra.Command, args []string) error {
return ac.runAdd(cmd, args)
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ var Clouds = []CloudInfo{
func (cc *CloudCommand) Init() {
cc.command = &cobra.Command{
Use: "cloud [COMMANDS]",
Short: "manage kubeconfig from cloud",
Long: "manage kubeconfig from cloud",
Short: "Manage kubeconfig from cloud",
Long: "Manage kubeconfig from cloud",
}
cc.command.PersistentFlags().String("provider", "", "public cloud")
cc.command.PersistentFlags().String("cluster_id", "", "kubernetes cluster id")
Expand Down
4 changes: 2 additions & 2 deletions cmd/cloud_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type CloudListCommand struct {
func (cl *CloudListCommand) Init() {
cl.command = &cobra.Command{
Use: "list",
Short: "list Cluster from cloud",
Long: "list Cluster from cloud",
Short: "List Cluster from cloud",
Long: "List Cluster from cloud",
RunE: func(cmd *cobra.Command, args []string) error {
return cl.runCloudList(cmd, args)
},
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Available Commands:
add Add KubeConfig to $HOME/.kube/config
alias Generate alias for all contexts
clear Clear lapsed context, cluster and user
cloud manage kubeconfig from cloud
cloud Manage kubeconfig from cloud
completion Generate completion script
create Create new KubeConfig(experiment)
delete Delete the specified context from the kubeconfig
Expand Down
2 changes: 1 addition & 1 deletion docs/en-us/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Available Commands:
add Add KubeConfig to $HOME/.kube/config
alias Generate alias for all contexts
clear Clear lapsed context, cluster and user
cloud manage kubeconfig from cloud
cloud Manage kubeconfig from cloud
completion Generate completion script
create Create new KubeConfig(experiment)
delete Delete the specified context from the kubeconfig
Expand Down
2 changes: 1 addition & 1 deletion docs/en-us/cli/kubecm.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ KubeConfig Manager.
* [kubecm add](kubecm_add.md) - Add KubeConfig to $HOME/.kube/config
* [kubecm alias](kubecm_alias.md) - Generate alias for all contexts
* [kubecm clear](kubecm_clear.md) - Clear lapsed context, cluster and user
* [kubecm cloud](kubecm_cloud.md) - manage kubeconfig from cloud
* [kubecm cloud](kubecm_cloud.md) - Manage kubeconfig from cloud
* [kubecm completion](kubecm_completion.md) - Generate completion script
* [kubecm create](kubecm_create.md) - Create new KubeConfig(experiment)
* [kubecm delete](kubecm_delete.md) - Delete the specified context from the kubeconfig
Expand Down
6 changes: 3 additions & 3 deletions docs/en-us/cli/kubecm_cloud.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## kubecm cloud

manage kubeconfig from cloud
Manage kubeconfig from cloud

### Synopsis

manage kubeconfig from cloud
Manage kubeconfig from cloud

### Options

Expand All @@ -26,5 +26,5 @@ manage kubeconfig from cloud

* [kubecm](kubecm.md) - KubeConfig Manager.
* [kubecm cloud add](kubecm_cloud_add.md) - Add kubeconfig from cloud
* [kubecm cloud list](kubecm_cloud_list.md) - list Cluster from cloud
* [kubecm cloud list](kubecm_cloud_list.md) - List Cluster from cloud

2 changes: 1 addition & 1 deletion docs/en-us/cli/kubecm_cloud_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ kubecm cloud add --provider alibabacloud --cluster_id=xxxxxx

### SEE ALSO

* [kubecm cloud](kubecm_cloud.md) - manage kubeconfig from cloud
* [kubecm cloud](kubecm_cloud.md) - Manage kubeconfig from cloud

6 changes: 3 additions & 3 deletions docs/en-us/cli/kubecm_cloud_list.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## kubecm cloud list

list Cluster from cloud
List Cluster from cloud

### Synopsis

list Cluster from cloud
List Cluster from cloud

```
kubecm cloud list [flags]
Expand Down Expand Up @@ -53,5 +53,5 @@ kubecm cloud list --provider alibabacloud --cluster_id=xxxxxx

### SEE ALSO

* [kubecm cloud](kubecm_cloud.md) - manage kubeconfig from cloud
* [kubecm cloud](kubecm_cloud.md) - Manage kubeconfig from cloud

2 changes: 1 addition & 1 deletion docs/zh-cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Available Commands:
add Add KubeConfig to $HOME/.kube/config
alias Generate alias for all contexts
clear Clear lapsed context, cluster and user
cloud manage kubeconfig from cloud
cloud Manage kubeconfig from cloud
completion Generate completion script
create Create new KubeConfig(experiment)
delete Delete the specified context from the kubeconfig
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/cli/kubecm_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@

* [kubecm](kubecm.md) - KubeConfig Manager.
* [kubecm cloud add](kubecm_cloud_add.md) - Add kubeconfig from cloud
* [kubecm cloud list](kubecm_cloud_list.md) - list Cluster from cloud
* [kubecm cloud list](kubecm_cloud_list.md) - List Cluster from cloud

2 changes: 1 addition & 1 deletion docs/zh-cn/cli/kubecm_cloud_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ kubecm cloud add --provider alibabacloud --cluster_id=xxxxxx

### SEE ALSO

* [kubecm cloud](kubecm_cloud.md) - manage kubeconfig from cloud
* [kubecm cloud](kubecm_cloud.md) - Manage kubeconfig from cloud

2 changes: 1 addition & 1 deletion docs/zh-cn/cli/kubecm_cloud_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ kubecm cloud list --provider alibabacloud --cluster_id=xxxxxx

### SEE ALSO

* [kubecm cloud](kubecm_cloud.md) - manage kubeconfig from cloud
* [kubecm cloud](kubecm_cloud.md) - Manage kubeconfig from cloud

0 comments on commit 69eeeb5

Please sign in to comment.