Documentation
¶
Index ¶
- func AskConfirm(title string, defaultValue bool) (bool, error)
- func AskMultiSelect(title string, options []SelectOption, limit int) ([]string, error)
- func AskSelect(title string, options []SelectOption) (string, error)
- func AskString(title, placeholder string) (string, error)
- type Confirm
- type Form
- type FormGroup
- type MultiSelect
- type Prompt
- type Select
- type SelectOption
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskConfirm ¶
AskConfirm prompts for a yes/no confirmation
func AskMultiSelect ¶
func AskMultiSelect(title string, options []SelectOption, limit int) ([]string, error)
AskMultiSelect prompts for multiple selections from a list
Types ¶
type Confirm ¶
type Confirm struct {
Title string
Description string
Value *bool
Affirmative string
Negative string
}
Confirm represents a yes/no confirmation prompt
type MultiSelect ¶
type MultiSelect struct {
Title string
Description string
Options []SelectOption
Value *[]string
Limit int
}
MultiSelect represents a multi-selection prompt
type Prompt ¶
type Prompt struct {
Title string
Description string
Placeholder string
Value *string
Required bool
}
Prompt represents a simple text input prompt
type Select ¶
type Select struct {
Title string
Description string
Options []SelectOption
Value *string
}
Select represents a selection prompt
type SelectOption ¶
SelectOption represents an option in a select prompt
Click to show internal directories.
Click to hide internal directories.