Skip to content

Commit 89ce78e

Browse files
committed
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 <command> <subcommand> --help' for more information about a command. Read the manual at https://cli.github.com/manual ```
1 parent 682c15d commit 89ce78e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/cmd/actions/actions.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
package actions
22

33
import (
4-
"fmt"
5-
64
"github.com/MakeNowJust/heredoc"
75
"github.com/cli/cli/pkg/cmdutil"
86
"github.com/cli/cli/pkg/iostreams"
97
"github.com/spf13/cobra"
108
)
119

1210
func NewCmdActions(f *cmdutil.Factory) *cobra.Command {
11+
cs := f.IOStreams.ColorScheme()
12+
1313
cmd := &cobra.Command{
1414
Use: "actions",
1515
Short: "Learn about working with GitHub actions",
16+
Long: actionsExplainer(cs),
1617
Annotations: map[string]string{
1718
"IsActions": "true",
1819
},
1920
}
2021

21-
cmd.SetHelpFunc(func(c *cobra.Command, s []string) {
22-
cs := f.IOStreams.ColorScheme()
23-
fmt.Fprintln(f.IOStreams.Out, actionsExplainer(cs))
24-
})
25-
2622
return cmd
2723
}
2824

0 commit comments

Comments
 (0)