(p Prompt)
| 341 | } |
| 342 | |
| 343 | func 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 | |
| 349 | func waitForEnter(r io.Reader) error { |
| 350 | scanner := bufio.NewScanner(r) |
no test coverage detected