Interface: ModuleManager
Since
2.0.0
Implemented by
Methods
get
▸ get(id): undefined | string
Parameters
| Name | Type |
|---|---|
id | string |
Returns
undefined | string
Defined in
src/core/contracts/module-manager.ts:13
getByNameCommandType
▸ getByNameCommandType<T>(name, commandType): undefined | Promise<CommandModuleDefs[T]>
Type parameters
| Name | Type |
|---|---|
T | extends CommandType |
Parameters
| Name | Type |
|---|---|
name | string |
commandType | T |
Returns
undefined | Promise<CommandModuleDefs[T]>
Defined in
src/core/contracts/module-manager.ts:18
getMetadata
▸ getMetadata(m): undefined | CommandMeta
Parameters
| Name | Type |
|---|---|
m | Module |
Returns
undefined | CommandMeta
Defined in
src/core/contracts/module-manager.ts:14
getPublishableCommands
▸ getPublishableCommands(): Promise<CommandModule[]>
Returns
Promise<CommandModule[]>
Defined in
src/core/contracts/module-manager.ts:17
set
▸ set(id, path): void
Parameters
| Name | Type |
|---|---|
id | string |
path | string |
Returns
void
Defined in
src/core/contracts/module-manager.ts:16
setMetadata
▸ setMetadata(m, c): void
Parameters
| Name | Type |
|---|---|
m | Module |
c | CommandMeta |
Returns
void