MCPcopy
hub / github.com/cli/cli / CommentableConfirmDeleteLastComment

Function CommentableConfirmDeleteLastComment

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

Source from the content-addressed store, hash-verified

341}
342
343func CommentableConfirmDeleteLastComment(p Prompt) func(string) (bool, error) {
344 return func(body string) (bool, error) {
345 return p.Confirm(fmt.Sprintf("Delete the comment: %q?", body), true)
346 }
347}
348
349func waitForEnter(r io.Reader) error {
350 scanner := bufio.NewScanner(r)

Callers 1

NewCmdCommentFunction · 0.92

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected