Documentation
¶
Overview ¶
Package prompt provides a prompter interface for UI interactions
Package prompt provides a prompter interface for prompting the user for input and a survey implementation of that interface. based on github.com/cli/cli/internal/prompter/prompter.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter interface {
Select(message string, defaultValue string, options []string) (int, error)
MultiSelect(message string, defaultValues, options []string) ([]int, error)
Input(prompt, defaultValue string) (string, error)
InputWithHelp(prompt, help, defaultValue string) (string, error)
Confirm(prompt string, defaultValue bool) (bool, error)
ConfirmDeletion(requiredValue string) error
}
Prompter is the interface for prompting the user for input
Click to show internal directories.
Click to hide internal directories.