Versions in this module Expand all Collapse all v1 v1.1.0 Dec 1, 2015 v1.0.0 Jun 14, 2015 Changes in this version + const BashCompFilenameExt + const BashCompOneRequiredFlag + var EnablePrefixMatching bool = false + var EnableWindowsMouseTrap bool = true + var MousetrapHelpText string = ... + func Eq(a interface{}, b interface{}) bool + func GenMarkdown(cmd *Command, out *bytes.Buffer) + func GenMarkdownCustom(cmd *Command, out *bytes.Buffer, linkHandler func(string) string) + func GenMarkdownTree(cmd *Command, dir string) + func GenMarkdownTreeCustom(cmd *Command, dir string, filePrepender func(string) string, ...) + func Gt(a interface{}, b interface{}) bool + func OnInitialize(y ...func()) + type Command struct + Aliases []string + BashCompletionFunction string + Deprecated string + Example string + Long string + PersistentPostRun func(cmd *Command, args []string) + PersistentPreRun func(cmd *Command, args []string) + PostRun func(cmd *Command, args []string) + PreRun func(cmd *Command, args []string) + Run func(cmd *Command, args []string) + Short string + Use string + ValidArgs []string + func (c *Command) AddCommand(cmds ...*Command) + func (c *Command) CommandPath() string + func (c *Command) CommandPathPadding() int + func (c *Command) Commands() []*Command + func (c *Command) DebugFlags() + func (c *Command) Execute() (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) 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) HasRunnableSiblings() bool + func (c *Command) HasRunnableSubCommands() 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) 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) 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 (cmd *Command) GenBashCompletion(out *bytes.Buffer) + func (cmd *Command) GenBashCompletionFile(filename string) error + func (cmd *Command) MarkFlagRequired(name string)