Skip to content

Commit

Permalink
show features on k8s enable/disable (#524)
Browse files Browse the repository at this point in the history
* show features on help messages

* make go.doc
  • Loading branch information
neoaggelos authored Jul 3, 2024
1 parent b07b07a commit 8cf53b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/_parts/commands/k8s_disable.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Disable core cluster features
Disable one of network, dns, gateway, ingress, local-storage, load-balancer.

```
k8s disable <feature> ... [flags]
k8s disable [network|dns|gateway|ingress|local-storage|load-balancer] ... [flags]
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_parts/commands/k8s_enable.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Enable core cluster features
Enable one of network, dns, gateway, ingress, local-storage, load-balancer.

```
k8s enable <feature> ... [flags]
k8s enable [network|dns|gateway|ingress|local-storage|load-balancer] ... [flags]
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/cmd/k8s/k8s_disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func newDisableCmd(env cmdutil.ExecutionEnvironment) *cobra.Command {
timeout time.Duration
}
cmd := &cobra.Command{
Use: "disable <feature> ...",
Use: fmt.Sprintf("disable [%s] ...", strings.Join(featureList, "|")),
Short: "Disable core cluster features",
Long: fmt.Sprintf("Disable one of %s.", strings.Join(featureList, ", ")),
Args: cmdutil.MinimumNArgs(env, 1),
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/cmd/k8s/k8s_enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func newEnableCmd(env cmdutil.ExecutionEnvironment) *cobra.Command {
timeout time.Duration
}
cmd := &cobra.Command{
Use: "enable <feature> ...",
Use: fmt.Sprintf("enable [%s] ...", strings.Join(featureList, "|")),
Short: "Enable core cluster features",
Long: fmt.Sprintf("Enable one of %s.", strings.Join(featureList, ", ")),
Args: cmdutil.MinimumNArgs(env, 1),
Expand Down

0 comments on commit 8cf53b9

Please sign in to comment.