MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / Prompt

Method Prompt

pkg/surveyext/editor.go:56–62  ·  view source on GitHub ↗
(config *survey.PromptConfig)

Source from the content-addressed store, hash-verified

54}
55
56func (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
64func (e *OctoEditor) prompt(initialValue string, config *survey.PromptConfig) (interface{}, error) {
65 // render the template

Callers

nothing calls this directly

Calls 1

promptMethod · 0.95

Tested by

no test coverage detected