ui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 Proceed added in v0.0.20

func Proceed(message string, stdio ...terminal.Stdio) bool

Proceed displays a given message and asks the user if they want to proceed using the optionally specified Stdio instance (useful for testing purposes)

Types

This section is empty.

Jump to

Keyboard shortcuts

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