Methods
(async) factory(pkgName) → {BajoCli}
Plugin factory,
Never call this function directly!!! It's only-meant to be called by the Bajo framework during plugin initialization.
Parameters:
| Name | Type | Description |
|---|---|---|
pkgName | string | NPM package name |
Returns:
- BajoCli class
- Type:
- BajoCli
Type Definitions
TCommand
Command definition object.
Type:
Properties- object
| Name | Type | Description |
|---|---|---|
command | string | Command syntax |
aliases | Array.<string> | Command aliases |
describe | string | Command description |
builder | function | Function to build command options |
handler | function | Function to handle the command execution |