(cf func() (gh.Config, error), io *iostreams.IOStreams)
| 331 | } |
| 332 | |
| 333 | func CommentableEditSurvey(cf func() (gh.Config, error), io *iostreams.IOStreams) func(string) (string, error) { |
| 334 | return func(initialValue string) (string, error) { |
| 335 | editorCommand, err := cmdutil.DetermineEditor(cf) |
| 336 | if err != nil { |
| 337 | return "", err |
| 338 | } |
| 339 | return surveyext.Edit(editorCommand, "*.md", initialValue, io.In, io.Out, io.ErrOut) |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | func CommentableConfirmDeleteLastComment(p Prompt) func(string) (bool, error) { |
| 344 | return func(body string) (bool, error) { |
no test coverage detected