Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error) subcommands.ExitStatus
func WrapSimpleCommand ¶
func WrapSimpleCommand(app App, simple SimpleCommand) subcommands.Command
Types ¶
type ArrayTransformValue ¶
type ArrayTransformValue struct {
// contains filtered or unexported fields
}
func (ArrayTransformValue) Apply ¶
func (value ArrayTransformValue) Apply(target *[]string)
func (*ArrayTransformValue) Set ¶
func (value *ArrayTransformValue) Set(arg string) error
func (ArrayTransformValue) String ¶
func (value ArrayTransformValue) String() string
type SimpleCommand ¶
type SimpleCommand interface { Name() string Synopsis() string Usage() string SetFlags(fs *flag.FlagSet) ParsePositional(fs *flag.FlagSet) error Execute(app App, fs *flag.FlagSet) subcommands.ExitStatus }
A wrapper over subcommands.Command with a slightly simplified API.
Click to show internal directories.
Click to hide internal directories.