Lines Matching defs:Commander
52 type Commander struct { struct
53 commands []*commandGroup
54 topFlags *flag.FlagSet // top-level flags
55 important []string // important top-level flags
56 name string // normally path.Base(os.Args[0])
58 …put io.Writer // Output specifies where the commander should write its output (default: os.Stdout).
59 …rror io.Writer // Error specifies where the commander should write its error (default: os.Stderr).
96 func (cdr *Commander) Register(cmd Command, group string) {
113 func (cdr *Commander) ImportantFlag(name string) {
123 func (cdr *Commander) Execute(ctx context.Context, args ...interface{}) ExitStatus {
160 func (cdr *Commander) explain(w io.Writer) {
278 func (cdr *Commander) HelpCommand() Command {
328 func (cdr *Commander) FlagsCommand() Command {
358 func (cdr *Commander) CommandsCommand() Command {