MCPcopy Index your code
hub / github.com/cli/cli / NewCmdLabel

Function NewCmdLabel

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

Source from the content-addressed store, hash-verified

6)
7
8func NewCmdLabel(f *cmdutil.Factory) *cobra.Command {
9 cmd := &cobra.Command{
10 Use: "label <command>",
11 Short: "Manage labels",
12 Long: `Work with GitHub labels.`,
13 }
14 cmdutil.EnableRepoOverride(cmd, f)
15
16 cmd.AddCommand(newCmdList(f, nil))
17 cmd.AddCommand(newCmdCreate(f, nil))
18 cmd.AddCommand(newCmdClone(f, nil))
19 cmd.AddCommand(newCmdEdit(f, nil))
20 cmd.AddCommand(newCmdDelete(f, nil))
21
22 return cmd
23}

Callers

nothing calls this directly

Calls 6

EnableRepoOverrideFunction · 0.92
newCmdListFunction · 0.85
newCmdCreateFunction · 0.85
newCmdCloneFunction · 0.85
newCmdEditFunction · 0.85
newCmdDeleteFunction · 0.85

Tested by

no test coverage detected