(filename, initialValue string)
| 401 | } |
| 402 | |
| 403 | func (e *UserEditor) Edit(filename, initialValue string) (string, error) { |
| 404 | editorCommand, err := cmdutil.DetermineEditor(e.Config) |
| 405 | if err != nil { |
| 406 | return "", err |
| 407 | } |
| 408 | return surveyext.Edit(editorCommand, filename, initialValue, e.IO.In, e.IO.Out, e.IO.ErrOut) |
| 409 | } |
| 410 | |
| 411 | const editorHintMarker = "------------------------ >8 ------------------------" |
| 412 | const editorHint = ` |
nothing calls this directly
no test coverage detected