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

Function newBugCommentCommand

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

Source from the content-addressed store, hash-verified

9)
10
11func newBugCommentCommand(env *execenv.Env) *cobra.Command {
12 cmd := &cobra.Command{
13 Use: "comment [BUG_ID]",
14 Short: "List a bug's comments",
15 PreRunE: execenv.LoadBackend(env),
16 RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
17 return runBugComment(env, args)
18 }),
19 ValidArgsFunction: BugCompletion(env),
20 }
21
22 cmd.AddCommand(newBugCommentNewCommand(env))
23 cmd.AddCommand(newBugCommentEditCommand(env))
24
25 return cmd
26}
27
28func runBugComment(env *execenv.Env, args []string) error {
29 b, _, err := ResolveSelected(env.Backend, args)

Callers 1

NewBugCommandFunction · 0.85

Calls 6

LoadBackendFunction · 0.92
CloseBackendFunction · 0.92
runBugCommentFunction · 0.85
BugCompletionFunction · 0.85
newBugCommentNewCommandFunction · 0.85
newBugCommentEditCommandFunction · 0.85

Tested by

no test coverage detected