MCPcopy Create free account
hub / github.com/cli/cli / NewCmdWorkflow

Function NewCmdWorkflow

pkg/cmd/workflow/workflow.go:13–29  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

11)
12
13func NewCmdWorkflow(f *cmdutil.Factory) *cobra.Command {
14 cmd := &cobra.Command{
15 Use: "workflow <command>",
16 Short: "View details about GitHub Actions workflows",
17 Long: "List, view, and run workflows in GitHub Actions.",
18 GroupID: "actions",
19 }
20 cmdutil.EnableRepoOverride(cmd, f)
21
22 cmd.AddCommand(cmdList.NewCmdList(f, nil))
23 cmd.AddCommand(cmdEnable.NewCmdEnable(f, nil))
24 cmd.AddCommand(cmdDisable.NewCmdDisable(f, nil))
25 cmd.AddCommand(cmdView.NewCmdView(f, nil))
26 cmd.AddCommand(cmdRun.NewCmdRun(f, nil))
27
28 return cmd
29}

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected