Skip to content

Commit a69186e

Browse files
author
Gianluca Arbezzano
committed
feat(kubectl): root cmd return helps
The root commands returns the help output Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
1 parent f626806 commit a69186e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/profefe.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func NewProfefeCmd(streams genericclioptions.IOStreams) *cobra.Command {
2525
PersistentPreRun: func(c *cobra.Command, args []string) {
2626
c.SetOutput(streams.ErrOut)
2727
},
28-
Run: func(cmd *cobra.Command, args []string) {},
28+
Run: func(cmd *cobra.Command, args []string) {
29+
cmd.Help()
30+
},
2931
}
3032

3133
flags.AddFlagSet(rootCmd.PersistentFlags())

0 commit comments

Comments
 (0)