Documentation
¶
Index ¶
- type Prompter
- func (p *Prompter) Confirm(question string, defaultYes bool) bool
- func (p *Prompter) Input(question string, validator func(string) error) string
- func (p *Prompter) InputWithDefault(question, defaultValue string, validator func(string) error) string
- func (p *Prompter) MultiSelect(question string, options []string) []int
- func (p *Prompter) Password(question string) string
- func (p *Prompter) Select(question string, options []string) int
- func (p *Prompter) SelectWithDefault(question string, options []string, defaultIndex int) int
- func (p *Prompter) ShowSummary(title string, items map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
Prompter handles interactive CLI prompts
func (*Prompter) InputWithDefault ¶
func (p *Prompter) InputWithDefault(question, defaultValue string, validator func(string) error) string
InputWithDefault prompts for text input with a default value
func (*Prompter) MultiSelect ¶
MultiSelect prompts for multiple choices (space-separated indices)
func (*Prompter) SelectWithDefault ¶
SelectWithDefault prompts for single choice with a default option
Click to show internal directories.
Click to hide internal directories.