From 89ce78e48be593058ec2035d5f6dbe78c2fc706d Mon Sep 17 00:00:00 2001 From: chemotaxis Date: Thu, 17 Jun 2021 13:30:26 -0400 Subject: [PATCH] Restore help footer At the moment, the "help footer" doesn't add any new information, but if additional flags are added later, they should appear in the footer. This change restores this help footer: ```shell USAGE gh actions [flags] INHERITED FLAGS --help Show help for command LEARN MORE Use 'gh --help' for more information about a command. Read the manual at https://cli.github.com/manual ``` --- pkg/cmd/actions/actions.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/actions/actions.go b/pkg/cmd/actions/actions.go index 69af75993..b9b17a14a 100644 --- a/pkg/cmd/actions/actions.go +++ b/pkg/cmd/actions/actions.go @@ -1,8 +1,6 @@ package actions import ( - "fmt" - "github.com/MakeNowJust/heredoc" "github.com/cli/cli/pkg/cmdutil" "github.com/cli/cli/pkg/iostreams" @@ -10,19 +8,17 @@ import ( ) func NewCmdActions(f *cmdutil.Factory) *cobra.Command { + cs := f.IOStreams.ColorScheme() + cmd := &cobra.Command{ Use: "actions", Short: "Learn about working with GitHub actions", + Long: actionsExplainer(cs), Annotations: map[string]string{ "IsActions": "true", }, } - cmd.SetHelpFunc(func(c *cobra.Command, s []string) { - cs := f.IOStreams.ColorScheme() - fmt.Fprintln(f.IOStreams.Out, actionsExplainer(cs)) - }) - return cmd }