(cf func() (gh.Config, error), io *iostreams.IOStreams)
| 433 | } |
| 434 | |
| 435 | func CommentableEditSurvey(cf func() (gh.Config, error), io *iostreams.IOStreams) func(string) (string, error) { |
| 436 | return func(initialValue string) (string, error) { |
| 437 | editorCommand, err := cmdutil.DetermineEditor(cf) |
| 438 | if err != nil { |
| 439 | return "", err |
| 440 | } |
| 441 | return surveyext.Edit(editorCommand, "*.md", initialValue, io.In, io.Out, io.ErrOut) |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | func CommentableConfirmDeleteLastComment(p Prompt) func(string) (bool, error) { |
| 446 | return func(body string) (bool, error) { |
no test coverage detected