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

Function newBugDeselectCommand

commands/bug/bug_deselect.go:11–27  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

9)
10
11func newBugDeselectCommand(env *execenv.Env) *cobra.Command {
12 cmd := &cobra.Command{
13 Use: "deselect",
14 Short: "Clear the implicitly selected bug",
15 Example: `git bug select 2f15
16git bug comment
17git bug status
18git bug deselect
19`,
20 PreRunE: execenv.LoadBackend(env),
21 RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
22 return runBugDeselect(env)
23 }),
24 }
25
26 return cmd
27}
28
29func runBugDeselect(env *execenv.Env) error {
30 err := _select.Clear(env.Backend, bug.Namespace)

Callers 1

NewBugCommandFunction · 0.85

Calls 3

LoadBackendFunction · 0.92
CloseBackendFunction · 0.92
runBugDeselectFunction · 0.85

Tested by

no test coverage detected