Method
Prompt
(config *survey.PromptConfig)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | func (e *OctoEditor) Prompt(config *survey.PromptConfig) (interface{}, error) { |
| 57 | initialValue := "" |
| 58 | if e.Default != "" && e.AppendDefault { |
| 59 | initialValue = e.Default |
| 60 | } |
| 61 | return e.prompt(initialValue, config) |
| 62 | } |
| 63 | |
| 64 | func (e *OctoEditor) prompt(initialValue string, config *survey.PromptConfig) (interface{}, error) { |
| 65 | // render the template |
Callers
nothing calls this directly
Tested by
no test coverage detected