MCPcopy Create free account
hub / github.com/git-bug/git-bug / runBugRm

Function runBugRm

commands/bug/bug_rm.go:29–43  ·  view source on GitHub ↗
(env *execenv.Env, args []string)

Source from the content-addressed store, hash-verified

27}
28
29func runBugRm(env *execenv.Env, args []string) (err error) {
30 if len(args) == 0 {
31 return errors.New("you must provide a bug prefix to remove")
32 }
33
34 err = env.Backend.Bugs().Remove(args[0])
35
36 if err != nil {
37 return
38 }
39
40 env.Out.Printf("bug %s removed\n", args[0])
41
42 return
43}

Callers 2

newBugRmCommandFunction · 0.85
TestBugRmFunction · 0.85

Calls 4

BugsMethod · 0.80
RemoveMethod · 0.65
PrintfMethod · 0.65
NewMethod · 0.45

Tested by 1

TestBugRmFunction · 0.68