#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

Functions - API calls offered directly by the extension


#API Documentation

#Functions

Signatureplugins.core.commands.actions.execute(action) -> boolean
TypeFunction
DescriptionExecutes the action with the provided parameters.
Parameters
  • action - A table representing the action, matching the following:id - The specific Command ID within the group.
Returns
  • true if the action was executed successfully.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/commands/actions.lua line 113

Signatureplugins.core.commands.actions.getId(action) -> string
TypeFunction
DescriptionGets an ID from an action table
Parameters
  • action - The action table.
Returns
  • The ID as a string.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/commands/actions.lua line 100

Signatureplugins.core.commands.actions.init(actionmanager, cmds) -> none
TypeFunction
DescriptionInitialises the module.
Parameters
  • actionmanager - The Action Manager Plugin
  • cmds - The Commands Plugin.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/commands/actions.lua line 39

Signatureplugins.core.commands.actions.onChoices(choices) -> none
TypeFunction
DescriptionAdds available choices to the selection.
Parameters
  • choices - The cp.choices to add choices to.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/commands/actions.lua line 67

Signatureplugins.core.commands.actions.reset() -> nothing
TypeFunction
DescriptionResets the set of choices.
Parameters
  • None
Returns
  • Nothing
NotesNone
ExamplesNone
Sourcesrc/plugins/core/commands/actions.lua line 154