Documentation ¶
Index ¶
- func Exit()
- func ExitCode(code int)
- type Command
- func (cmd *Command) AddCommand(name string, help string, init func(*Command))
- func (cmd *Command) Error(err error)
- func (cmd *Command) Errorf(format string, args ...interface{})
- func (cmd *Command) Fatal(err error)
- func (cmd *Command) Fatalf(format string, args ...interface{})
- func (cmd *Command) Flag() *flag.FlagSet
- func (cmd *Command) Handle(handler Handler)
- func (cmd *Command) HandleFunc(handler HandlerFunc)
- func (cmd *Command) Run(args []string)
- func (cmd *Command) Usage(usage string)
- type Handler
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) AddCommand ¶
func (*Command) HandleFunc ¶
func (cmd *Command) HandleFunc(handler HandlerFunc)
type HandlerFunc ¶
type HandlerFunc func(args []string)
func (HandlerFunc) Handle ¶
func (handle HandlerFunc) Handle(args []string)
Click to show internal directories.
Click to hide internal directories.