Documentation ¶
Index ¶
- func InternalError(w io.Writer)
- func SetLogFile(w io.Writer)
- func UsageError(w io.Writer, message string)
- type Command
- func (c *Command) Command(name string, description string, h Handler)
- func (c *Command) Example(usage string, description string)
- func (c *Command) OptionUsage(names []string, required bool, description string)
- func (c *Command) ServeArgs(w io.Writer, args []string)
- func (c *Command) Summary(usage string, description string)
- func (c *Command) Usage() string
- func (c *Command) Welcome(msg string)
- func (c *Command) Work(work Handler)
- type Handler
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternalError ¶ added in v0.1.6
func SetLogFile ¶ added in v0.7.0
func UsageError ¶ added in v0.1.7
Types ¶
type Command ¶
Command routes handler by command (`FlagSet.Args()[0]`)
func NewCommand ¶
func (*Command) OptionUsage ¶
OptionUsage registers a option to display in Usage
Click to show internal directories.
Click to hide internal directories.