(p Prompt)
| 443 | } |
| 444 | |
| 445 | func 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 | |
| 451 | func waitForEnter(r io.Reader) error { |
| 452 | scanner := bufio.NewScanner(r) |
no test coverage detected