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