Documentation ¶
Index ¶
- func EqualArguments(ctx *cli.Context, arg1, arg2 string) error
- func FileError(err error, filename string) error
- func FlagValueInsecure(ctx *cli.Context, flag string, value string) error
- func IncompatibleFlag(ctx *cli.Context, flag string, value string) error
- func IncompatibleFlagValue(ctx *cli.Context, flag, incompatibleWith, incompatibleWithValue string) error
- func IncompatibleFlagValueWithFlagValue(ctx *cli.Context, flag string, value string, withFlag string, ...) error
- func IncompatibleFlagValues(ctx *cli.Context, flag, value, incompatibleWith, incompatibleWithValue string) error
- func IncompatibleFlagWithFlag(ctx *cli.Context, flag string, withFlag string) error
- func InsecureArgument(ctx *cli.Context, name string) error
- func InsecureCommand(ctx *cli.Context) error
- func InvalidFlagValue(ctx *cli.Context, flag string, value string, options string) error
- func MinSizeFlag(ctx *cli.Context, flag string, size string) error
- func MinSizeInsecureFlag(ctx *cli.Context, flag, size string) error
- func MissingArguments(ctx *cli.Context, argNames ...string) error
- func MutuallyExclusiveFlags(ctx *cli.Context, flag1, flag2 string) error
- func NewError(format string, args ...interface{}) error
- func NewExitError(err error, exitCode int) error
- func NumberOfArguments(ctx *cli.Context, required int) error
- func RequiredFlag(ctx *cli.Context, flag string) error
- func RequiredInsecureFlag(ctx *cli.Context, flag string) error
- func RequiredOrFlag(ctx *cli.Context, flags ...string) error
- func RequiredSubtleFlag(ctx *cli.Context, flag string) error
- func RequiredUnlessFlag(ctx *cli.Context, flag, unlessFlag string) error
- func RequiredUnlessInsecureFlag(ctx *cli.Context, flag string) error
- func RequiredUnlessSubtleFlag(ctx *cli.Context, flag string) error
- func RequiredWithFlag(ctx *cli.Context, flag, required string) error
- func RequiredWithFlagValue(ctx *cli.Context, flag, value, required string) error
- func TooFewArguments(ctx *cli.Context) error
- func TooManyArguments(ctx *cli.Context) error
- func Wrap(err error, format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualArguments ¶
EqualArguments returns an error saying that the given positional arguments cannot be equal.
func FlagValueInsecure ¶
FlagValueInsecure returns an error with the given flag and value requiring the --insecure flag.
func IncompatibleFlag ¶
IncompatibleFlag returns an error with the flag being incompatible with the given value.
func IncompatibleFlagValue ¶
func IncompatibleFlagValue(ctx *cli.Context, flag, incompatibleWith, incompatibleWithValue string) error
IncompatibleFlagValue returns an error with the flag being incompatible with the given value.
func IncompatibleFlagValueWithFlagValue ¶
func IncompatibleFlagValueWithFlagValue(ctx *cli.Context, flag string, value string, withFlag string, withValue, options string) error
IncompatibleFlagValueWithFlagValue returns an error with the given value being missing or invalid for the given flag. Optionally it lists the given formated options at the end.
func IncompatibleFlagValues ¶
func IncompatibleFlagValues(ctx *cli.Context, flag, value, incompatibleWith, incompatibleWithValue string) error
IncompatibleFlagValues returns an error with the flag being incompatible with the given value.
func IncompatibleFlagWithFlag ¶
IncompatibleFlagWithFlag returns an error with the flag being incompatible with the given value.
func InsecureArgument ¶
InsecureArgument returns an error with the given argument requiring the --insecure flag.
func InsecureCommand ¶
InsecureCommand returns an error with a message saying that the current command requires the insecure flag.
func InvalidFlagValue ¶
InvalidFlagValue returns an error with the given value being missing or invalid for the given flag. Optionally it lists the given formated options at the end.
func MinSizeFlag ¶
MinSizeFlag returns an error with a greater or equal message message for the given flag and size.
func MinSizeInsecureFlag ¶
MinSizeInsecureFlag returns an error with a requiring --insecure flag message with the given flag an size.
func MissingArguments ¶
MissingArguments returns an error with a missing arguments message for the given positional argument names.
func MutuallyExclusiveFlags ¶
MutuallyExclusiveFlags returns an error with mutually exclusive message for the given flags.
func NewExitError ¶
NewExitError returns an error that the urfave/cli package will handle and will show the given error and exit with the given code.
func NumberOfArguments ¶
NumberOfArguments returns nil if the number of positional arguments is equal to the required one. It will return an appropriate error if they are not.
func RequiredFlag ¶
RequiredFlag returns an error with the required flag message.
func RequiredInsecureFlag ¶
RequiredInsecureFlag returns an error with the given flag requiring the insecure flag message.
func RequiredOrFlag ¶
RequiredOrFlag returns an error with a list of flags being required messages.
func RequiredSubtleFlag ¶
RequiredSubtleFlag returns an error with the given flag requiring the subtle flag message..
func RequiredUnlessFlag ¶ added in v0.8.4
RequiredUnlessFlag returns an error with the required flag message unless the specified flag is used.
func RequiredUnlessInsecureFlag ¶
RequiredUnlessInsecureFlag returns an error with the required flag message unless the insecure flag is used.
func RequiredUnlessSubtleFlag ¶
RequiredUnlessSubtleFlag returns an error with the required flag message unless the subtle flag is used.
func RequiredWithFlag ¶
RequiredWithFlag returns an error with the required flag message with another flag.
func RequiredWithFlagValue ¶
RequiredWithFlagValue returns an error with the required flag message.
func TooFewArguments ¶
TooFewArguments returns an error with a few arguments were provided message.
func TooManyArguments ¶
TooManyArguments returns an error with a too many arguments were provided message.
Types ¶
This section is empty.