Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EditorQuestionTemplate = `` /* 714-byte string literal not displayed */
EXTENDED to change prompt text
Functions ¶
func DefaultEditorName ¶
func DefaultEditorName() string
Types ¶
type EditorTemplateData ¶
type EditorTemplateData struct {
survey.Editor
EditorCommand string
BlankAllowed bool
Answer string
ShowAnswer bool
ShowHelp bool
Config *survey.PromptConfig
}
EXTENDED to pass editor name (to use in prompt)
type InstillEditor ¶
type InstillEditor struct {
*survey.Editor
EditorCommand string
BlankAllowed bool
// contains filtered or unexported fields
}
EXTENDED to enable different prompting behavior
func (*InstillEditor) Prompt ¶
func (e *InstillEditor) Prompt(config *survey.PromptConfig) (interface{}, error)
EXTENDED This is straight copypasta from survey to get our overridden prompt called.;
Click to show internal directories.
Click to hide internal directories.