MCPcopy
hub / github.com/cli/cli / NewCmdActions

Function NewCmdActions

pkg/cmd/actions/actions.go:10–23  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

8)
9
10func NewCmdActions(f *cmdutil.Factory) *cobra.Command {
11 cs := f.IOStreams.ColorScheme()
12
13 cmd := &cobra.Command{
14 Use: "actions",
15 Short: "Learn about working with GitHub Actions",
16 Long: actionsExplainer(cs),
17 Hidden: true,
18 }
19
20 cmdutil.DisableAuthCheck(cmd)
21
22 return cmd
23}
24
25func actionsExplainer(cs *iostreams.ColorScheme) string {
26 header := cs.Bold("Welcome to GitHub Actions on the command line.")

Callers

nothing calls this directly

Calls 3

DisableAuthCheckFunction · 0.92
actionsExplainerFunction · 0.85
ColorSchemeMethod · 0.80

Tested by

no test coverage detected