Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExit = errors.New("user negatively confirmed input")
ErrExit is returned when the user denies the provided input.
Functions ¶
func ParseAndRun ¶
Types ¶
type Process ¶
type Process struct {
SkipValidation bool `long:"skip-validation" description:"skips waiting for human validation" env:"PC_SKIP_VALIDATION"`
Version bool `long:"version" short:"v" description:"display version"`
StdIn io.Reader
StdOut io.Writer
StdErr io.Writer
GetUserInput func(stream io.Writer) (byte, error)
// OutputCompleteMessage is used for testing only. It outputs an additional
// "complete" prior to exiting when set to true.
OutputCompleteMessage bool
}
Click to show internal directories.
Click to hide internal directories.