mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #125641 from nirs/sample-cli-plugin-help
Sample cli plugin help
This commit is contained in:
commit
437f6e92ec
@ -82,6 +82,9 @@ func NewCmdNamespace(streams genericiooptions.IOStreams) *cobra.Command {
|
|||||||
Short: "View or set the current namespace",
|
Short: "View or set the current namespace",
|
||||||
Example: fmt.Sprintf(namespaceExample, "kubectl"),
|
Example: fmt.Sprintf(namespaceExample, "kubectl"),
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
|
Annotations: map[string]string{
|
||||||
|
cobra.CommandDisplayNameAnnotation: "kubectl ns",
|
||||||
|
},
|
||||||
RunE: func(c *cobra.Command, args []string) error {
|
RunE: func(c *cobra.Command, args []string) error {
|
||||||
if err := o.Complete(c, args); err != nil {
|
if err := o.Complete(c, args); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user