mirror of
https://github.com/strongdm/comply
synced 2024-08-27 17:56:48 +00:00
19 lines
558 B
Go
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
|