Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 3.1 KB

plugins.core.commands.actions.md

File metadata and controls

39 lines (31 loc) · 3.1 KB

docs » plugins.core.commands.actions


An action which will execute a command with matching group/id values. Registers itself with the core.action.manager.

API Overview

API Documentation

Functions

Signature plugins.core.commands.actions.execute(action) -> boolean
Type Function
Description Executes the action with the provided parameters.
Parameters
  • * action - A table representing the action, matching the following:
  • * id - The specific Command ID within the group.
Signature plugins.core.commands.actions.onChoices(choices) -> nothing
Type Function
Description Adds available choices to the selection.
Parameters
  • * choices - The cp.choices to add choices to.
Returns
  • * Nothing
Signature plugins.core.commands.actions.reset() -> nothing
Type Function
Description Resets the set of choices.
Parameters
  • * None
Returns
  • * Nothing