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

Function NewCmdRun

pkg/cmd/run/run.go:15–33  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

13)
14
15func NewCmdRun(f *cmdutil.Factory) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "run <command>",
18 Short: "View details about workflow runs",
19 Long: "List, view, and watch recent workflow runs from GitHub Actions.",
20 GroupID: "actions",
21 }
22 cmdutil.EnableRepoOverride(cmd, f)
23
24 cmd.AddCommand(cmdList.NewCmdList(f, nil))
25 cmd.AddCommand(cmdView.NewCmdView(f, nil))
26 cmd.AddCommand(cmdRerun.NewCmdRerun(f, nil))
27 cmd.AddCommand(cmdDownload.NewCmdDownload(f, nil))
28 cmd.AddCommand(cmdWatch.NewCmdWatch(f, nil))
29 cmd.AddCommand(cmdCancel.NewCmdCancel(f, nil))
30 cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil))
31
32 return cmd
33}

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected