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

Function runBugLabel

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

Source from the content-addressed store, hash-verified

24}
25
26func runBugLabel(env *execenv.Env, args []string) error {
27 b, _, err := ResolveSelected(env.Backend, args)
28 if err != nil {
29 return err
30 }
31
32 snap := b.Snapshot()
33
34 for _, l := range snap.Labels {
35 env.Out.Println(l)
36 }
37
38 return nil
39}

Callers 1

newBugLabelCommandFunction · 0.85

Calls 3

ResolveSelectedFunction · 0.85
SnapshotMethod · 0.80
PrintlnMethod · 0.65

Tested by

no test coverage detected