Documentation ¶
Index ¶
- func AskPassword(question string) string
- func AskPasswordOnce(question string) string
- type Asker
- func (a *Asker) AskBool(question string, defaultAnswer string) (bool, error)
- func (a *Asker) AskChoice(question string, choices []string, defaultAnswer string) (string, error)
- func (a *Asker) AskInt(question string, min int64, max int64, defaultAnswer string, ...) (int64, error)
- func (a *Asker) AskString(question string, defaultAnswer string, validate func(string) error) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskPassword ¶
AskPassword asks the user to enter a password.
func AskPasswordOnce ¶
AskPasswordOnce asks the user to enter a password.
It's the same as AskPassword, but it won't ask to enter it again.
Types ¶
type Asker ¶
type Asker struct {
// contains filtered or unexported fields
}
Asker holds a reader for reading input into CLI questions.
Click to show internal directories.
Click to hide internal directories.