Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidNumOfParams = errors.New("invalid number of params provided")
ErrInvalidNumOfParams returned when the number of params provided doesn't match the command
Functions ¶
func WithParams ¶
func WithParams(params []Parameter) cmdOpt
WithParams used to pass the params to the Command. Returns an error if the param is not found.
Types ¶
type Command ¶
type Command struct {
ID uuid.UUID
Name string
Description string
Command string
Params []Parameter
}
Command represents a shell.
type History ¶ added in v0.4.0
type History struct {
Usages []Usage
}
History contains the history of usage of the command.
Click to show internal directories.
Click to hide internal directories.