MCPcopy
hub / github.com/cli/cli / Prompt

Method Prompt

pkg/surveyext/editor.go:154–160  ·  view source on GitHub ↗

EXTENDED This is straight copypasta from survey to get our overridden prompt called.;

(config *survey.PromptConfig)

Source from the content-addressed store, hash-verified

152
153// EXTENDED This is straight copypasta from survey to get our overridden prompt called.;
154func (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
162func EditorName(editorCommand string) string {
163 if editorCommand == "" {

Calls 1

promptMethod · 0.95