ui

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(message, provided string, defaultValue ...string) string

func AskOrReturnToExit

func AskOrReturnToExit(message string, defaultValue ...string) string

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 MultiSelect(message string, options []string, defaultValues []string) []string

func OutputSelection

func OutputSelection(msg, choice string)

func Proceed

func Proceed(message string) bool

Proceed displays a given message and asks the user if they want to proceed

func Select

func Select(message string, options []string, defaultValue ...string) string

func SelectFromOtherErrorMessage added in v0.1.5

func SelectFromOtherErrorMessage(msg, wrong string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL