Versions in this module Expand all Collapse all v0 v0.1.4 Mar 4, 2014 v0.1.3 Feb 22, 2014 v0.1.2 Feb 18, 2014 v0.1.1 Feb 13, 2014 Changes in this version + var AppHelpTemplate = ... + var CommandHelpTemplate = ... + var HelpPrinter = printHelp + func ShowAppHelp(c *Context) + func ShowCommandHelp(c *Context, command string) + func ShowVersion(c *Context) + type App struct + Action func(context *Context) + Author string + Before func(context *Context) error + Commands []Command + Compiled time.Time + Email string + Flags []Flag + Name string + Usage string + Version string + func NewApp() *App + func (a *App) Command(name string) *Command + func (a *App) Run(arguments []string) error + type Args []string + func (a Args) First() string + func (a Args) Get(n int) string + func (a Args) Present() bool + func (a Args) Tail() []string + type BoolFlag struct + Name string + Usage string + func (f BoolFlag) Apply(set *flag.FlagSet) + func (f BoolFlag) String() string + type Command struct + Action func(context *Context) + Description string + Flags []Flag + Name string + ShortName string + Usage string + func (c Command) HasName(name string) bool + func (c Command) Run(ctx *Context) error + type Context struct + App *App + 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) Float64(name string) float64 + func (c *Context) GlobalBool(name string) bool + func (c *Context) GlobalInt(name string) int + func (c *Context) GlobalIntSlice(name string) []int + 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 Flag interface + Apply func(*flag.FlagSet) + type Float64Flag struct + Name string + Usage string + Value float64 + func (f Float64Flag) Apply(set *flag.FlagSet) + func (f Float64Flag) String() string + type IntFlag struct + 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 + Name string + Usage string + Value *IntSlice + func (f IntSliceFlag) Apply(set *flag.FlagSet) + func (f IntSliceFlag) String() string + type StringFlag struct + 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 + Name string + Usage string + Value *StringSlice + func (f StringSliceFlag) Apply(set *flag.FlagSet) + func (f StringSliceFlag) String() string