new CommandResolver()
A resolver for commands, so the shell can discover commands.
Methods
commands() → {Array.<Command>}
Returns:
-
the current commands
-
- Type
- Array.<Command>
getCommand(name) → {Command}
Returns a single command by its name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the command name |
Returns:
the commad or null
- Type
- Command