MCPcopy Index your code
hub / github.com/git-bug/git-bug / newBugLabelNewCommand

Function newBugLabelNewCommand

commands/bug/bug_label_new.go:10–22  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

8)
9
10func newBugLabelNewCommand(env *execenv.Env) *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "new [BUG_ID] LABEL...",
13 Short: "Add a label to a bug",
14 PreRunE: execenv.LoadBackendEnsureUser(env),
15 RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
16 return runBugLabelNew(env, args)
17 }),
18 ValidArgsFunction: BugAndLabelsCompletion(env, true),
19 }
20
21 return cmd
22}
23
24func runBugLabelNew(env *execenv.Env, args []string) error {
25 b, cleanArgs, err := ResolveSelected(env.Backend, args)

Callers 1

newBugLabelCommandFunction · 0.85

Calls 4

LoadBackendEnsureUserFunction · 0.92
CloseBackendFunction · 0.92
runBugLabelNewFunction · 0.85
BugAndLabelsCompletionFunction · 0.85

Tested by

no test coverage detected