1
0
mirror of https://github.com/strongdm/comply synced 2024-11-09 01:14:53 +00:00
comply/vendor/github.com/manifoldco/promptui/promptui.go

19 lines
558 B
Go
Raw Normal View History

2018-05-10 01:02:33 +00:00
// 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