Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmModel ¶
type ConfirmModel struct {
// contains filtered or unexported fields
}
ConfirmModel manages the state for a confirmation prompt
func NewConfirmModel ¶
func NewConfirmModel(prompt string, defaultValue bool) ConfirmModel
NewConfirmModel creates a new confirmation prompt model
func (ConfirmModel) Cancelled ¶
func (m ConfirmModel) Cancelled() bool
Cancelled reports whether the user cancelled the confirmation prompt
func (ConfirmModel) Result ¶
func (m ConfirmModel) Result() bool
Result returns the confirmation result
type InputModel ¶
type InputModel struct {
// contains filtered or unexported fields
}
InputModel manages the state for a text input prompt
func NewInputModel ¶
func NewInputModel(prompt, defaultValue string, isPassword bool) InputModel
NewInputModel creates a new input prompt model
func (InputModel) Cancelled ¶
func (m InputModel) Cancelled() bool
Cancelled reports whether the user cancelled the input (Ctrl+C or Esc)
type SelectModel ¶
type SelectModel struct {
// contains filtered or unexported fields
}
SelectModel manages the state for a select prompt
func NewSelectModel ¶
func NewSelectModel(choices []string) SelectModel
NewSelectModel creates a new select prompt model
func (SelectModel) Cancelled ¶
func (m SelectModel) Cancelled() bool
Cancelled reports whether the user cancelled the prompt (e.g., via Ctrl+C or q)
func (SelectModel) Selected ¶
func (m SelectModel) Selected() string
Selected returns the selected choice
Click to show internal directories.
Click to hide internal directories.