Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoOp = func(c interface{}) error { return nil }
View Source
var Tags = func(s ...string) []string {
return s
}
Functions ¶
This section is empty.
Types ¶
type Command ¶ added in v0.1.31
type Command struct { Name string Description string Documentation string Entrypoint Op Parent *Command Commands Commands Configs config.Opts sync.Mutex }
Command is a specification for a command and can include any number of subcommands, and for each Command a list of options
func (*Command) Foreach ¶ added in v0.1.32
func (c *Command) Foreach(cl func(*Command, int) bool, hereDepth, hereDist int, cmd *Command) (ocl func(*Command, int) bool, depth, dist int, cm *Command)
Foreach runs a closure on every node in the Commands tree, stopping if the closure returns false
func (*Command) MarshalText ¶ added in v0.1.32
Click to show internal directories.
Click to hide internal directories.