Versions in this module Expand all Collapse all v0 v0.0.4 Jan 4, 2021 Changes in this version + var ErrInsufficientArgs = errors.New("not enough arguments for command") + func AddTargetFunc(f TargetFunc) + func Commands() map[string]Command + func Register(command Command) + type Command struct + func ByAlias(alias string) (Command, bool) + func New(name, description string, aliases []string, r ...Runnable) Command + func (cmd Command) Aliases() []string + func (cmd Command) Description() string + func (cmd Command) Execute(args string, source Source) + func (cmd Command) Name() string + func (cmd Command) Params() [][]ParamInfo + func (cmd Command) String() string + func (cmd Command) Usage() string + type Enum interface + Options func() []string + SetOption func(option string, v reflect.Value) + Type func() string + type Limiter interface + Limit func() []Source + type Line struct + func (line *Line) Leftover() []string + func (line *Line) Len() int + func (line *Line) Next() (string, bool) + func (line *Line) NextN(n int) ([]string, bool) + type Output struct + func (o *Output) Error(a ...interface{}) + func (o *Output) ErrorCount() int + func (o *Output) Errorf(format string, a ...interface{}) + func (o *Output) Errors() []error + func (o *Output) MessageCount() int + func (o *Output) Messages() []string + func (o *Output) Print(a ...interface{}) + func (o *Output) Printf(format string, a ...interface{}) + type ParamInfo struct + Name string + Optional bool + Suffix string + Value interface{} + type Parameter interface + Parse func(line *Line, v reflect.Value) error + Type func() string + type Runnable interface + Run func(source Source, output *Output) + type Source interface + SendCommandOutput func(output *Output) + World func() *world.World + type SubCommand interface + SubName func() string + type Target interface + Name func() string + Position func() mgl64.Vec3 + type TargetFunc func(src Source) (entities, players []Target) + type Varargs string