CLI command registry with auto-discovery. Loads command modules from this directory and manages aliases.
- Source
Methods
(inner) discoverCommands() → {Map.<string, Command>}
Auto-discover and load all command modules from this directory
- Source
Returns:
- Type:
- Map.<string, Command>
(inner) getAllCommands() → {Array.<Command>}
- Source
Returns:
- Type:
- Array.<Command>
(inner) getCommand(name) → {Command|undefined}
Parameters:
| Name | Type | Description |
|---|---|---|
name | string |
- Source
Returns:
- Type:
- Command |
undefined
Type Definitions
Command
Type:
Properties- Object
| Name | Type | Attributes | Description |
|---|---|---|---|
name | string | ||
category | string | <optional> | |
description | string | <optional> | |
aliases | Array.<string> | <optional> | |
options | Array.<Object> | <optional> | |
examples | Array.<string> | <optional> | |
run | function |
- Source