Contains all of the plugin and plugin registry commands.
- Copyright:
- Copyright © 2022-… by Seth Hollingsead. All rights reserved
- Source:
Requires
Methods
(inner) countPluginsInRegistry(inputData, inputMetaData) → {array.<boolean, integer>}
This is a command function that calls the chiefPlugin.countAllPluginsInRegistry function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by the number of plugins found in the plugins registry.
- Type
- array.<boolean, integer>
(inner) countPluginsInRegistryPath(inputData, inputMetaData) → {array.<boolean, integer>}
This is a command function that calls the chiefPlugin.countAllPluginsInRegistryPath.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by the number of plugins found in the plugins registry.
- Type
- array.<boolean, integer>
(inner) listAllLoadedPlugins(inputData, inputMetaData) → {array.<boolean, array.<string>>}
This is a command function that calls the warden.listLoadedPlugins function
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not, followed by the list of plugins that have been loaded.
- Type
- array.<boolean, array.<string>>
(inner) listAllPluginsInRegistry(inputData, inputMetaData) → {array.<boolean, array.<string>>}
This is a command function that calls the chiefPlugin.getAllPluginsInRegistry function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by the list of plugins in the registry.
- Type
- array.<boolean, array.<string>>
(inner) listAllPluginsInRegistryPath(inputData, inputMetaData) → {array.<boolean, array.<string>>}
This is a command function that calls the chiefPlugin.getAllPluginsInRegistryPath function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by the list of plugins in the plugins registry path.
- Type
- array.<boolean, array.<string>>
(inner) listPluginsRegistryPath(inputData, inputMetaData) → {array.<boolean, string>}
Prints out the plugins path that is listed in the plugin registry meta-data.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by a string that is the plugins path.
- Type
- array.<boolean, string>
(inner) loadPlugin(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the the warden.loadPlugin function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'loadPlugin' inputData[1] = pluginPath - The fully qualified path where to load the plugin from, or the name of the plugin folder in the plugins registry path where the plugin can be found. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugin was loaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) loadPlugins(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the warden.loadPlugins function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string, array.<string>> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'loadPlugins' inputData[1] = Array of fully qualified plugin paths were to load all the plugins from. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if all the plugins were loaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) loadPluginsFromRegistry(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the warden.loadPluginsFromRegistry function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if all the plugins from the plugin registry were loaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) registerPlugin(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the chiefPlugin.registerNamedPlugin function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'registerPlugin' inputData[1] = pluginName inputData[2] = pluginPath |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugin was registered successfully or not.
- Type
- array.<boolean, boolean>
(inner) savePluginRegistryToDisk(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the chiefPlugin.savePluginRegistryDisk function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugin registry was saved successfully or not.
- Type
- array.<boolean, boolean>
(inner) syncPluginRegistryWithPath(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the chiefPlugin.synchronizePluginRegistryWithPath function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugin registry synchronization was successful or not.
- Type
- array.<boolean, boolean>
(inner) unloadAllPlugins(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the warden.unloadAllPlugins function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if all the plugins were unloaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) unloadPlugin(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the warden.unloadPlugin function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'unloadPlugin' inputData[1] = pluginName - The name of the plugin that should be unloaded. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the specified plugin was unloaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) unloadPlugins(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the warden.unloadPlugins function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string, array.<string>> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'unloadPlugins' inputData[1] = Array of plugin names that should be unloaded. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the specified plugin was unloaded successfully or not.
- Type
- array.<boolean, boolean>
(inner) unregisterAllPlugins(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the chiefPlugin.clearPluginRegistry function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | Not used for this command. |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if all the plugins were unregistered successfully or not.
- Type
- array.<boolean, boolean>
(inner) unregisterPlugin(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls the chiefPlugin.unregisterNamedPlugin function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'unregisterPlugin' inputData[1] = pluginName |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugin was unregistered successfully or not.
- Type
- array.<boolean, boolean>
(inner) unregisterPlugins(inputData, inputMetaData) → {array.<boolean, boolean>}
This is a command function that calls chiefPlugin.unregisterPlugins function.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered the correct input as follows: inputData[0] = 'unregisterPlugins' inputData[1] = pluginName1,pluginName2,pluginNameX... |
inputMetaData |
string | Not used for this command. |
- Source:
Returns:
An array with a boolean True or False value to indicate if the application should exit or not exit, followed by another boolean value to indicate if the plugins were unregistered successfully or not.
- Type
- array.<boolean, boolean>