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 }