Documentation ¶
Index ¶
- func Ask(message, provided string, defaultValue ...string) string
- func AskOrReturnToExit(message string, defaultValue ...string) string
- func GetValidatorFor(prop validation.Validatable) survey.Validator
- func HandleError(err error)
- func MultiSelect(message string, options []string, defaultValues []string) []string
- func OutputSelection(msg, choice string)
- func Proceed(message string) bool
- func Select(message string, options []string, defaultValue ...string) string
- func SelectFromOtherErrorMessage(msg, wrong string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskOrReturnToExit ¶
func GetValidatorFor ¶
func GetValidatorFor(prop validation.Validatable) survey.Validator
GetValidatorFor returns an implementation specific validator for the given validatable to avoid type casting at each calling site
func HandleError ¶
func HandleError(err error)
HandleError handles UI-related errors, in particular useful to gracefully handle ctrl-c interrupts gracefully
func MultiSelect ¶
func OutputSelection ¶
func OutputSelection(msg, choice string)
func SelectFromOtherErrorMessage ¶ added in v0.1.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.