Versions in this module Expand all Collapse all v0 v0.2.1 Dec 29, 2014 v0.2.0 Dec 29, 2014 Changes in this version + var AppHelpTemplate = ... + var BashCompletionFlag = BoolFlag + var CommandHelpTemplate = ... + var HelpFlag = BoolFlag + var HelpPrinter helpPrinter = nil + var SubcommandHelpTemplate = ... + var VersionFlag = BoolFlag + var VersionPrinter = printVersion + func DefaultAppComplete(c *Context) + func ShowAppHelp(c *Context) + func ShowCommandCompletions(ctx *Context, command string) + func ShowCommandHelp(c *Context, command string) + func ShowCompletions(c *Context) + func ShowSubcommandHelp(c *Context) + func ShowVersion(c *Context) + type App struct + Action func(context *Context) + Author string + BashComplete func(context *Context) + Before func(context *Context) error + CommandNotFound func(context *Context, command string) + Commands []Command + Compiled time.Time + Email string + EnableBashCompletion bool + Flags []Flag + HideHelp bool + HideVersion bool + Name string + Usage string + Version string + Writer io.Writer + func NewApp() *App + func (a *App) Command(name string) *Command + func (a *App) Run(arguments []string) error + func (a *App) RunAndExitOnError() + func (a *App) RunAsSubcommand(ctx *Context) 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 BoolFlag struct + EnvVar string + Name string + Usage string + func (f BoolFlag) Apply(set *flag.FlagSet) + func (f BoolFlag) String() string + type BoolTFlag struct + EnvVar string + Name string + Usage string + func (f BoolTFlag) Apply(set *flag.FlagSet) + func (f BoolTFlag) String() string + type Command struct + Action func(context *Context) + BashComplete func(context *Context) + Before func(context *Context) error + Description string + Flags []Flag + HideHelp bool + Name string + ShortName string + SkipFlagParsing bool + Subcommands []Command + Usage string + func (c Command) HasName(name string) bool + func (c Command) Run(ctx *Context) error + type Context struct + App *App + Command Command + func NewContext(app *App, set *flag.FlagSet, globalSet *flag.FlagSet) *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) String(name string) string + func (c *Context) StringSlice(name string) []string + type DurationFlag struct + EnvVar string + Name string + Usage string + Value time.Duration + func (f DurationFlag) Apply(set *flag.FlagSet) + func (f DurationFlag) String() string + type Flag interface + Apply func(*flag.FlagSet) + type Float64Flag struct + EnvVar string + Name string + Usage string + Value float64 + func (f Float64Flag) Apply(set *flag.FlagSet) + 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) String() string + type IntFlag struct + EnvVar string + Name string + Usage string + Value int + func (f IntFlag) Apply(set *flag.FlagSet) + 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) String() string + type StringFlag struct + EnvVar string + Name string + Usage string + Value string + func (f StringFlag) Apply(set *flag.FlagSet) + 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) String() string