Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalCommands = make(map[string]Command)
GlobalCommands stores all the daolictl command
Functions ¶
Types ¶
type Cli ¶
Cli represents a command line interface
type ClientFlags ¶
type ClientFlags struct { FlagSet *flag.FlagSet Common *CommonFlags PostParse func() }
ClientFlags represents flags for the daolictl client.
type CommonFlags ¶
type CommonFlags struct { FlagSet *flag.FlagSet PostParse func() Debug bool Hosts []string LogLevel string TLS bool TLSVerify bool TLSOptions *Options }
CommonFlags represents flags that are common to the client.
type Handler ¶
type Handler interface{}
Handler holds the different commands Cli will call It should have methods with names starting with `Cmd` like:
func (h myHandler) CmdFoo(args ...string) error
type Initializer ¶
type Initializer interface {
Initialize() error
}
Initializer can be optionally implemented by a Handler to initialize before each call to one of its commands.
Click to show internal directories.
Click to hide internal directories.