Documentation ¶
Overview ¶
Package appargs provides argument validation routines for use with github.com/urfave/cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUsage = errors.New("invalid command usage")
ErrInvalidUsage is returned when there is a validation error.
Functions ¶
func NonEmptyString ¶
NonEmptyString is a validator for non-empty strings.
func Validate ¶
func Validate(vs ...Validator) cli.BeforeFunc
Validate can be used as a command's Before function to validate the arguments to the command.
Types ¶
Click to show internal directories.
Click to hide internal directories.