Documentation
¶
Index ¶
- Variables
- func Exec(v reflect.Value, cmd []string) (out []reflect.Value, err error)
- func ExecMethod(ctx Context, method, methodCtx reflect.Value, cmd []string) (out []reflect.Value, err error)
- func Help(app string, v reflect.Value)
- func HelpCmd(app string, v reflect.Value, cmd string)
- func HelpMethod(app string, method reflect.Value)
- func Parse(ctx Context, argsType reflect.Type, cmd []string) (args reflect.Value, err error)
- type Cmd
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParamsNotEnough = errors.New("params not enough") ErrTooMuchParams = errors.New("too much params") ErrUnsupportedFlagType = errors.New("unsupported flag type") ErrUnsupportedArgType = errors.New("unsupported argument type") )
View Source
var ( ErrMethodNotFound = errors.New("method not found") ErrInvalidMethodPrototype = errors.New("invalid method prototype: method input argument count != 2") )
Functions ¶
func ExecMethod ¶
func HelpMethod ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.