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

Function CommentableConfirmDeleteLastComment

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected