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

Function newBugStatusCloseCommand

commands/bug/bug_status_close.go:9–21  ·  view source on GitHub ↗
(env *execenv.Env)

Source from the content-addressed store, hash-verified

7)
8
9func newBugStatusCloseCommand(env *execenv.Env) *cobra.Command {
10 cmd := &cobra.Command{
11 Use: "close [BUG_ID]",
12 Short: "Mark a bug as closed",
13 PreRunE: execenv.LoadBackendEnsureUser(env),
14 RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
15 return runBugStatusClose(env, args)
16 }),
17 ValidArgsFunction: BugCompletion(env),
18 }
19
20 return cmd
21}
22
23func runBugStatusClose(env *execenv.Env, args []string) error {
24 b, _, err := ResolveSelected(env.Backend, args)

Callers 1

newBugStatusCommandFunction · 0.85

Calls 4

LoadBackendEnsureUserFunction · 0.92
CloseBackendFunction · 0.92
runBugStatusCloseFunction · 0.85
BugCompletionFunction · 0.85

Tested by

no test coverage detected