(p Prompt)
| 447 | } |
| 448 | |
| 449 | func 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 | |
| 455 | func waitForEnter(r io.Reader) error { |
| 456 | scanner := bufio.NewScanner(r) |
no test coverage detected