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

Function newBugLabelRmCommand

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

Source from the content-addressed store, hash-verified

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

Callers 1

newBugLabelCommandFunction · 0.85

Calls 4

LoadBackendFunction · 0.92
CloseBackendFunction · 0.92
runBugLabelRmFunction · 0.85
BugAndLabelsCompletionFunction · 0.85

Tested by

no test coverage detected