MCPcopy Create free account
hub / github.com/cli/cli / CommentableConfirmDeleteLastComment

Function CommentableConfirmDeleteLastComment

pkg/cmd/pr/shared/commentable.go:449–453  ·  view source on GitHub ↗
(p Prompt)

Source from the content-addressed store, hash-verified

447}
448
449func CommentableConfirmDeleteLastComment(p Prompt) func(string) (bool, error) {
450 return func(body string) (bool, error) {
451 return p.Confirm(fmt.Sprintf("Delete the comment: %q?", body), true)
452 }
453}
454
455func waitForEnter(r io.Reader) error {
456 scanner := bufio.NewScanner(r)

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected