1
0
mirror of https://github.com/strongdm/comply synced 2024-07-05 08:11:48 +00:00
comply/vendor/github.com/manifoldco/promptui/promptui.go
2018-05-15 14:13:11 -07:00

19 lines
558 B
Go

// Package promptui provides ui elements for the command line prompt.
package promptui
import "errors"
// ErrEOF is returned from prompts when EOF is encountered.
var ErrEOF = errors.New("^D")
// ErrInterrupt is returned from prompts when an interrupt (ctrl-c) is
// encountered.
var ErrInterrupt = errors.New("^C")
// ErrAbort is returned when confirm prompts are supplied "n"
var ErrAbort = errors.New("")
// ValidateFunc validates the given input. It should return a ValidationError
// if the input is not valid.
type ValidateFunc func(string) error