Commited dependencies
This commit is contained in:
18
vendor/github.com/manifoldco/promptui/promptui.go
generated
vendored
Normal file
18
vendor/github.com/manifoldco/promptui/promptui.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user