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

Function CommentableConfirmDeleteLastComment

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected