Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// Prompt container for sequence of prompts
Prompts []Prompt
}
func (*Array) GetResults ¶
type Autocomplete ¶
type Autocomplete struct {
// Prompt message
Msg string
// Autocomplete selection options
Options []string
// Default option
Default string
// Prompt error massage for incorrect input
ErrMsg string
// Prompt confirmation massage for incorrect input
ConfirmationMsg string
// Default option for confirmation prompt
ConfirmationDefault string
// Return value will be saved under Label key
Label string
// contains filtered or unexported fields
}
func (*Autocomplete) GetResults ¶
func (autocomplete *Autocomplete) GetResults() *viper.Viper
func (*Autocomplete) Read ¶
func (autocomplete *Autocomplete) Read() error
type Simple ¶
type Simple struct {
// Prompt message
Msg string
// Default value
Default string
// Mask user input, mainly for passwords input
Mask bool
// Return value will be saved under Label key
Label string
// contains filtered or unexported fields
}
func (*Simple) GetResults ¶
type YesNo ¶
type YesNo struct {
// Prompt message
Msg string
// Default value
Default string
// Prompt container for positive outcome
Yes Prompt
// Prompt container for negative outcome
No Prompt
// Return value will be saved under Label key
Label string
// contains filtered or unexported fields
}
func (*YesNo) GetResults ¶
Click to show internal directories.
Click to hide internal directories.