Documentation
¶
Index ¶
- type CLI
- func (cli *CLI) BoolValue(flag, c string, flags map[string]string) (bool, error)
- func (cli *CLI) Command(name string) *command
- func (cli *CLI) DoubleValue(flag, c string, flags map[string]string) (float64, error)
- func (cli *CLI) Execute(textCmd string) (bool, error)
- func (cli *CLI) FlagValue(command, flag string, flags map[string]string) (interface{}, error)
- func (cli *CLI) HandlerFunc(commandName string, handler func(flags map[string]string) error)
- func (cli *CLI) IntValue(flag, c string, flags map[string]string) (int, error)
- func (cli *CLI) New(name, shortDesc, description string, ...) *command
- func (cli *CLI) Run()
- func (cli *CLI) String() string
- func (cli *CLI) StringValue(flag, c string, flags map[string]string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI holds the closing channel and the defined commands.
func (*CLI) DoubleValue ¶
DoubleValue returns the float64 value from the flag list.
func (*CLI) HandlerFunc ¶
HandlerFunc adds a handler to the specific command
func (*CLI) New ¶
func (cli *CLI) New(name, shortDesc, description string, handler func(flags map[string]string) error) *command
New creates a command
Click to show internal directories.
Click to hide internal directories.