Contains all of the top-level functions to manage the commands for the plugin.
- Copyright:
- Copyright © 2023-… by Seth Hollingsead. All rights reserved
- Source:
Requires
- module:commandBroker
- module:plugin.constants
- module:chiefData
- module:loggers
- @haystacks/constants
- path
Methods
(inner) initCommands() → {object}
Initializes all of the commands for the plugin, so they can be loaded by the Haystacks platform and used by the application.
- Source:
Returns:
A JSON object that contains an array of function objects that map function name to function call for all of the commands.
- Type
- object
(inner) setupCommandAliases(pluginCommandAliasesPath) → {object}
Sets up all the plugin command aliases data.
Parameters:
| Name | Type | Description |
|---|---|---|
pluginCommandAliasesPath |
string | The path of the command aliases files for the plugin layer. |
- Source:
Returns:
A JSON object that contains all of the command aliases data loaded and parsed from the specified path.
- Type
- object