EXTENDED This is straight copypasta from survey to get our overridden prompt called.;
(config *survey.PromptConfig)
| 152 | |
| 153 | // EXTENDED This is straight copypasta from survey to get our overridden prompt called.; |
| 154 | func (e *GhEditor) Prompt(config *survey.PromptConfig) (interface{}, error) { |
| 155 | initialValue := "" |
| 156 | if e.Default != "" && e.AppendDefault { |
| 157 | initialValue = e.Default |
| 158 | } |
| 159 | return e.prompt(initialValue, config) |
| 160 | } |
| 161 | |
| 162 | func EditorName(editorCommand string) string { |
| 163 | if editorCommand == "" { |