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