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 ¶
type JSONMapFlag map[string]interface{}
func (*JSONMapFlag) Set ¶
func (f *JSONMapFlag) Set(s string) error
func (*JSONMapFlag) String ¶
func (f *JSONMapFlag) String() string
type LogLevelFlag ¶
func (*LogLevelFlag) Set ¶
func (f *LogLevelFlag) Set(s string) error
func (*LogLevelFlag) String ¶
func (f *LogLevelFlag) String() string
type StringsMapFlag ¶
func (*StringsMapFlag) Set ¶
func (f *StringsMapFlag) Set(s string) error
func (*StringsMapFlag) String ¶
func (f *StringsMapFlag) String() string
Click to show internal directories.
Click to hide internal directories.