Documentation ¶
Index ¶
- Variables
- func PromptPassword(promptLabel string, validateFunc promptui.ValidateFunc) (string, error)
- func PromptText(promptLabel, promptDefault string, validateFunc promptui.ValidateFunc) (string, error)
- func PromptTrueFalseBool(promptLabel, trueString, falseString string, defaultValue bool) (bool, error)
- func ValidationNotEmptyString(input string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyString = errors.New("empty string")
)
errors
Functions ¶
func PromptPassword ¶
func PromptPassword(promptLabel string, validateFunc promptui.ValidateFunc) (string, error)
PromptPassword formats a prompt for password request, returns its result and validation error if any
func PromptText ¶
func PromptText(promptLabel, promptDefault string, validateFunc promptui.ValidateFunc) (string, error)
PromptText formats a promt and returns its result
func PromptTrueFalseBool ¶
func PromptTrueFalseBool(promptLabel, trueString, falseString string, defaultValue bool) (bool, error)
PromptTrueFalseBool returns a prompt for true, false questions - promptLabel: Text to use as label - trueString: Text for true - falseString: Text for false - defaultValue: default value
func ValidationNotEmptyString ¶
ValidationNotEmptyString validates the string is not empty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.