Skip to content

Commit

Permalink
Merge pull request #1775 from Adirio/command-suggestions
Browse files Browse the repository at this point in the history
✨Suggestions for create and alpha commands
  • Loading branch information
k8s-ci-robot committed Nov 6, 2020
2 parents b8e9a8f + 7352cfe commit b249df4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions pkg/cli/alpha.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import (

func (c *cli) newAlphaCmd() *cobra.Command {
return &cobra.Command{
Use: "alpha",
Short: "Expose commands which are in experimental or early stages of development",
Long: `Command group for commands which are either experimental or in early stages of development`,
Use: "alpha",
SuggestFor: []string{"experimental"},
Short: "Expose commands which are in experimental or early stages of development",
Long: `Command group for commands which are either experimental or in early stages of development`,
Example: fmt.Sprintf(`
# scaffolds webhook server
%s alpha webhook <params>`,
Expand Down
7 changes: 4 additions & 3 deletions pkg/cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import (

func (c *cli) newCreateCmd() *cobra.Command {
return &cobra.Command{
Use: "create",
Short: "Scaffold a Kubernetes API or webhook",
Long: `Scaffold a Kubernetes API or webhook.`,
Use: "create",
SuggestFor: []string{"new"},
Short: "Scaffold a Kubernetes API or webhook",
Long: `Scaffold a Kubernetes API or webhook.`,
}
}

0 comments on commit b249df4

Please sign in to comment.