Versions in this module Expand all Collapse all v0 v0.2.3 Jan 13, 2016 v0.2.2 Dec 29, 2015 Changes in this version + const BashCompFilenameExt + const BashCompOneRequiredFlag + const BashCompSubdirsInDir + var EnablePrefixMatching bool = false + var MousetrapHelpText string = ... — windows/amd64 + func AddTemplateFunc(name string, tmplFunc interface{}) + func AddTemplateFuncs(tmplFuncs template.FuncMap) + func Eq(a interface{}, b interface{}) bool + func Gt(a interface{}, b interface{}) bool + func MarkFlagFilename(flags *pflag.FlagSet, name string, extensions ...string) error + func MarkFlagRequired(flags *pflag.FlagSet, name string) error + func OnInitialize(y ...func()) + type Command struct + Aliases []string + BashCompletionFunction string + Deprecated string + DisableAutoGenTag bool + DisableSuggestions bool + Example string + Hidden bool + Long string + PersistentPostRun func(cmd *Command, args []string) + PersistentPostRunE func(cmd *Command, args []string) error + PersistentPreRun func(cmd *Command, args []string) + PersistentPreRunE func(cmd *Command, args []string) error + PostRun func(cmd *Command, args []string) + PostRunE func(cmd *Command, args []string) error + PreRun func(cmd *Command, args []string) + PreRunE func(cmd *Command, args []string) error + Run func(cmd *Command, args []string) + RunE func(cmd *Command, args []string) error + Short string + SilenceErrors bool + SilenceUsage bool + SuggestFor []string + SuggestionsMinimumDistance int + Use string + ValidArgs []string + func (c *Command) AddCommand(cmds ...*Command) + func (c *Command) ArgsLenAtDash() int + func (c *Command) CommandPath() string + func (c *Command) CommandPathPadding() int + func (c *Command) Commands() []*Command + func (c *Command) DebugFlags() + func (c *Command) Execute() error + func (c *Command) ExecuteC() (cmd *Command, err error) + func (c *Command) Find(args []string) (*Command, []string, error) + func (c *Command) Flag(name string) (flag *flag.Flag) + func (c *Command) Flags() *flag.FlagSet + func (c *Command) GlobalNormalizationFunc() func(f *flag.FlagSet, name string) flag.NormalizedName + func (c *Command) HasAlias(s string) bool + func (c *Command) HasAvailableSubCommands() bool + func (c *Command) HasExample() bool + func (c *Command) HasFlags() bool + func (c *Command) HasHelpSubCommands() bool + func (c *Command) HasInheritedFlags() bool + func (c *Command) HasLocalFlags() bool + func (c *Command) HasParent() bool + func (c *Command) HasPersistentFlags() bool + func (c *Command) HasSubCommands() bool + func (c *Command) Help() error + func (c *Command) HelpFunc() func(*Command, []string) + func (c *Command) HelpTemplate() string + func (c *Command) InheritedFlags() *flag.FlagSet + func (c *Command) IsAvailableCommand() bool + func (c *Command) IsHelpCommand() bool + func (c *Command) LocalFlags() *flag.FlagSet + func (c *Command) Name() string + func (c *Command) NameAndAliases() string + func (c *Command) NamePadding() int + func (c *Command) NonInheritedFlags() *flag.FlagSet + func (c *Command) Out() io.Writer + func (c *Command) Parent() *Command + func (c *Command) ParseFlags(args []string) (err error) + func (c *Command) PersistentFlags() *flag.FlagSet + func (c *Command) Print(i ...interface{}) + func (c *Command) Printf(format string, i ...interface{}) + func (c *Command) Println(i ...interface{}) + func (c *Command) RemoveCommand(cmds ...*Command) + func (c *Command) ResetCommands() + func (c *Command) ResetFlags() + func (c *Command) Root() *Command + func (c *Command) Runnable() bool + func (c *Command) SetArgs(a []string) + func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, name string) flag.NormalizedName) + func (c *Command) SetHelpCommand(cmd *Command) + func (c *Command) SetHelpFunc(f func(*Command, []string)) + func (c *Command) SetHelpTemplate(s string) + func (c *Command) SetOutput(output io.Writer) + func (c *Command) SetUsageFunc(f func(*Command) error) + func (c *Command) SetUsageTemplate(s string) + func (c *Command) SuggestionsFor(typedName string) []string + func (c *Command) Usage() error + func (c *Command) UsageFunc() (f func(*Command) error) + func (c *Command) UsagePadding() int + func (c *Command) UsageString() string + func (c *Command) UsageTemplate() string + func (c *Command) UseLine() string + func (c *Command) VisitParents(fn func(*Command)) + func (cmd *Command) GenBashCompletion(out *bytes.Buffer) + func (cmd *Command) GenBashCompletionFile(filename string) error + func (cmd *Command) MarkFlagFilename(name string, extensions ...string) error + func (cmd *Command) MarkFlagRequired(name string) error + func (cmd *Command) MarkPersistentFlagFilename(name string, extensions ...string) error + func (cmd *Command) MarkPersistentFlagRequired(name string) error