Versions in this module Expand all Collapse all v0 v0.4.1 Apr 25, 2016 v0.4.1-rc1 Apr 20, 2016 v0.4.0 Apr 7, 2016 Changes in this version + var AppHelpTemplate = ... + var BashCompletionFlag = BoolFlag + var CommandHelpTemplate = ... + var HelpFlag = BoolFlag + var HelpPrinter helpPrinter = printHelp + var SubcommandHelpTemplate = ... + var VersionFlag = BoolFlag + var VersionPrinter = printVersion + func DefaultAppComplete(c *Context) + func ShowAppHelp(c *Context) + func ShowCommandCompletions(ctx *Context, command string) + func ShowCommandHelp(ctx *Context, command string) + func ShowCompletions(c *Context) + func ShowSubcommandHelp(c *Context) + func ShowVersion(c *Context) + type App struct + Action func(context *Context) + After func(context *Context) error + ArgsUsage string + Author string + Authors []Author + BashComplete func(context *Context) + Before func(context *Context) error + CommandNotFound func(context *Context, command string) + Commands []Command + Compiled time.Time + Copyright string + Email string + EnableBashCompletion bool + Flags []Flag + HelpName string + HideHelp bool + HideVersion bool + Name string + OnUsageError func(context *Context, err error, isSubcommand bool) error + Usage string + UsageText string + Version string + Writer io.Writer + func NewApp() *App + func (a *App) Command(name string) *Command + func (a *App) Run(arguments []string) (err error) + func (a *App) RunAndExitOnError() + func (a *App) RunAsSubcommand(ctx *Context) (err error) + type Args []string + func (a Args) First() string + func (a Args) Get(n int) string + func (a Args) Present() bool + func (a Args) Swap(from, to int) error + func (a Args) Tail() []string + type Author struct + Email string + Name string + func (a Author) String() string + type BoolFlag struct + Destination *bool + EnvVar string + Name string + Usage string + func (f BoolFlag) Apply(set *flag.FlagSet) + func (f BoolFlag) GetName() string + func (f BoolFlag) String() string + type BoolTFlag struct + Destination *bool + EnvVar string + Name string + Usage string + func (f BoolTFlag) Apply(set *flag.FlagSet) + func (f BoolTFlag) GetName() string + func (f BoolTFlag) String() string + type Command struct + Action func(context *Context) + After func(context *Context) error + Aliases []string + ArgsUsage string + BashComplete func(context *Context) + Before func(context *Context) error + Description string + Flags []Flag + HelpName string + HideHelp bool + Name string + OnUsageError func(context *Context, err error) error + ShortName string + SkipFlagParsing bool + Subcommands []Command + Usage string + UsageText string + func (c Command) FullName() string + func (c Command) HasName(name string) bool + func (c Command) Names() []string + func (c Command) Run(ctx *Context) (err error) + type Context struct + App *App + Command Command + func NewContext(app *App, set *flag.FlagSet, parentCtx *Context) *Context + func (c *Context) Args() Args + func (c *Context) Bool(name string) bool + func (c *Context) BoolT(name string) bool + func (c *Context) Duration(name string) time.Duration + func (c *Context) FlagNames() (names []string) + func (c *Context) Float64(name string) float64 + func (c *Context) Generic(name string) interface{} + func (c *Context) GlobalBool(name string) bool + func (c *Context) GlobalDuration(name string) time.Duration + func (c *Context) GlobalFlagNames() (names []string) + func (c *Context) GlobalGeneric(name string) interface{} + func (c *Context) GlobalInt(name string) int + func (c *Context) GlobalIntSlice(name string) []int + func (c *Context) GlobalIsSet(name string) bool + func (c *Context) GlobalString(name string) string + func (c *Context) GlobalStringSlice(name string) []string + func (c *Context) Int(name string) int + func (c *Context) IntSlice(name string) []int + func (c *Context) IsSet(name string) bool + func (c *Context) NArg() int + func (c *Context) NumFlags() int + func (c *Context) Parent() *Context + func (c *Context) String(name string) string + func (c *Context) StringSlice(name string) []string + type DurationFlag struct + Destination *time.Duration + EnvVar string + Name string + Usage string + Value time.Duration + func (f DurationFlag) Apply(set *flag.FlagSet) + func (f DurationFlag) GetName() string + func (f DurationFlag) String() string + type Flag interface + Apply func(*flag.FlagSet) + GetName func() string + type Float64Flag struct + Destination *float64 + EnvVar string + Name string + Usage string + Value float64 + func (f Float64Flag) Apply(set *flag.FlagSet) + func (f Float64Flag) GetName() string + func (f Float64Flag) String() string + type Generic interface + Set func(value string) error + String func() string + type GenericFlag struct + EnvVar string + Name string + Usage string + Value Generic + func (f GenericFlag) Apply(set *flag.FlagSet) + func (f GenericFlag) FormatValueHelp() string + func (f GenericFlag) GetName() string + func (f GenericFlag) String() string + type IntFlag struct + Destination *int + EnvVar string + Name string + Usage string + Value int + func (f IntFlag) Apply(set *flag.FlagSet) + func (f IntFlag) GetName() string + func (f IntFlag) String() string + type IntSlice []int + func (f *IntSlice) Set(value string) error + func (f *IntSlice) String() string + func (f *IntSlice) Value() []int + type IntSliceFlag struct + EnvVar string + Name string + Usage string + Value *IntSlice + func (f IntSliceFlag) Apply(set *flag.FlagSet) + func (f IntSliceFlag) GetName() string + func (f IntSliceFlag) String() string + type MultiError struct + Errors []error + func NewMultiError(err ...error) MultiError + func (m MultiError) Error() string + type StringFlag struct + Destination *string + EnvVar string + Name string + Usage string + Value string + func (f StringFlag) Apply(set *flag.FlagSet) + func (f StringFlag) FormatValueHelp() string + func (f StringFlag) GetName() string + func (f StringFlag) String() string + type StringSlice []string + func (f *StringSlice) Set(value string) error + func (f *StringSlice) String() string + func (f *StringSlice) Value() []string + type StringSliceFlag struct + EnvVar string + Name string + Usage string + Value *StringSlice + func (f StringSliceFlag) Apply(set *flag.FlagSet) + func (f StringSliceFlag) GetName() string + func (f StringSliceFlag) String() string