Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUsage = errors.New("invalid usage")
ErrInvalidUsage when returned by a Handler the usage message is displayed.
Functions ¶
func OutputLine ¶
OutputLine prints the given string to stdout appending a new-line char.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a cli subcommands executor.
type Command ¶
type Command struct { Name string Args []string Desc string Handler HandlerFunc ParseFunc func(*flag.FlagSet) }
Command is a cli subcommand.
type HandlerFunc ¶
HandlerFunc is a subcommand handler, fs is already parsed.
type JSONMapFlag ¶ added in v0.2.0
type JSONMapFlag map[string]interface{}
func (*JSONMapFlag) Set ¶ added in v0.2.0
func (f *JSONMapFlag) Set(s string) error
func (*JSONMapFlag) String ¶ added in v0.2.0
func (f *JSONMapFlag) String() string
type LogLevelFlag ¶ added in v0.4.0
func (*LogLevelFlag) Set ¶ added in v0.4.0
func (f *LogLevelFlag) Set(s string) error
func (*LogLevelFlag) String ¶ added in v0.4.0
func (f *LogLevelFlag) String() string
type StringsMapFlag ¶ added in v0.2.0
func (*StringsMapFlag) Set ¶ added in v0.2.0
func (f *StringsMapFlag) Set(s string) error
func (*StringsMapFlag) String ¶ added in v0.2.0
func (f *StringsMapFlag) String() string
Click to show internal directories.
Click to hide internal directories.