Documentation ¶
Index ¶
- func GetInteractiveSelection(title string, items []string) (string, error)
- func PromptInteractive(question string, defaultResp bool) (bool, error)
- func QuestionInteractive(question, placeholder string) (string, error)
- func QuestionInteractiveSecret(question, placeholder string) (string, error)
- type Checklist
- func (c *Checklist) Init() tea.Cmd
- func (c *Checklist) SetFailure(index int, message string)
- func (c *Checklist) SetInconclusive(index int, message string)
- func (c *Checklist) SetRunning(index int)
- func (c *Checklist) SetSuccess(index int, message string)
- func (c *Checklist) Update(msg tea.Msg) (*Checklist, tea.Cmd)
- func (c *Checklist) View() string
- type ChecklistItem
- type Prompt
- type Question
- type Selector
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInteractiveSelection ¶
func PromptInteractive ¶
PromptInteractive prompts the user for a yes/no answer, where y or yes is true.
func QuestionInteractive ¶
QuestionInteractive prompts the user for a freeform text response.
Types ¶
type Checklist ¶
type Checklist struct { Items []ChecklistItem // contains filtered or unexported fields }
func NewChecklist ¶
func NewChecklist(items []ChecklistItem) *Checklist
func (*Checklist) SetFailure ¶
func (*Checklist) SetInconclusive ¶
func (*Checklist) SetRunning ¶
func (*Checklist) SetSuccess ¶
type ChecklistItem ¶
Click to show internal directories.
Click to hide internal directories.