MCPcopy Index your code
hub / github.com/go-task/task / Prompt

Method Prompt

internal/input/input.go:80–85  ·  view source on GitHub ↗

Prompt prompts for a variable value, using Select if enum is provided, Text otherwise

(varName string, enum []string)

Source from the content-addressed store, hash-verified

78
79// Prompt prompts for a variable value, using Select if enum is provided, Text otherwise
80func (p *Prompter) Prompt(varName string, enum []string) (string, error) {
81 if len(enum) > 0 {
82 return p.Select(varName, enum)
83 }
84 return p.Text(varName)
85}
86
87// textModel is the Bubble Tea model for text input
88type textModel struct {

Callers

nothing calls this directly

Calls 2

SelectMethod · 0.95
TextMethod · 0.95

Tested by

no test coverage detected