From af227117ab2cf16d845b96e0337337b9e52d810d Mon Sep 17 00:00:00 2001 From: zzxwill Date: Thu, 27 Aug 2020 21:05:32 +0800 Subject: [PATCH] add help group setting --- pkg/cmd/logs.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/logs.go b/pkg/cmd/logs.go index d61b61f62..c0aef79cc 100644 --- a/pkg/cmd/logs.go +++ b/pkg/cmd/logs.go @@ -14,8 +14,9 @@ import ( func NewLogsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command { cmd := &cobra.Command{} - cmd.Use = "logs " - cmd.Short = "tail pods logs of an application" + cmd.Use = "logs " + cmd.Short = "Tail pods logs of an application" + cmd.Long = "Tail pods logs of an application" cmd.PreRunE = func(cmd *cobra.Command, args []string) error { if len(args) < 1 { ioStreams.Errorf("please specify the application name") @@ -41,6 +42,9 @@ func NewLogsCommand(c types.Args, ioStreams cmdutil.IOStreams) *cobra.Command { } return nil } + cmd.Annotations = map[string]string{ + types.TagCommandType: types.TypeApp, + } return cmd }