XpmAction class
An individual xpm action containing commands to be executed.
Signature
export declare class XpmAction
Remarks
Actions are lazily initialised, with variable substitution performed only when the action is first retrieved and initialised. This allows for efficient handling of large numbers of actions generated from templates.
An action can exist in three states:
- Undefined: Name is known but instance not yet created.
- Instantiated: Object exists but commands not yet evaluated.
- Initialised: Commands fully evaluated with Liquid substitutions.
This design minimizes memory usage and computation for actions that are defined but never executed, which is common when using matrix templates to generate platform-specific or configuration-specific actions.
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
(constructor)({ actionName, jsonAction, parentActions, matrixParameters, }) |
Constructs an action instance. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string[] |
(Optional) The array of command strings after variable substitution. | |
|
|
boolean |
Flag indicating whether the action has been initialised. | |
|
|
(Optional) The matrix parameter values for template-generated actions. | ||
|
|
string |
The name of the action. | |
|
|
string[] |
Retrieves the array of command strings for this action. | |
|
|
The JSON definition of the action commands. | ||
|
|
The parent actions collection this action belongs to. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Completes the async initialisation of the action. |
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.