Raxol.Core.Runtime.Plugins.PluginCommandManager (Raxol v2.0.1)
View SourceManages plugin command registration and dispatch. Coordinates between plugins and the command system.
Summary
Functions
Returns a specification to start this module under a supervisor.
Dispatch a command to the appropriate plugin.
Get all registered commands.
Get commands for a specific plugin.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Initialize command table with initial plugins.
Register commands for a plugin.
Unregister all commands for a plugin.
Update command table with plugin commands.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Dispatch a command to the appropriate plugin.
@spec get_commands() :: map()
Get all registered commands.
Get commands for a specific plugin.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Initialize command table with initial plugins.
Register commands for a plugin.
@spec unregister_commands(atom()) :: :ok
Unregister all commands for a plugin.
Update command table with plugin commands.