@contrail/cli 3.5.3-alpha.0e9434c → 3.5.3-alpha.776a5c5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
|
|
|
17
17
|
$ contrail COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ contrail (--version)
|
|
20
|
-
@contrail/cli/3.5.3-alpha.
|
|
20
|
+
@contrail/cli/3.5.3-alpha.776a5c5 linux-x64 node-v24.16.0
|
|
21
21
|
$ contrail --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ contrail COMMAND
|
|
@@ -20,6 +20,7 @@ class LocalWorkflowTemplateDeployer {
|
|
|
20
20
|
const existingWorkflows = await (0, event_workflow_templates_1.getExistingWorkflowTemplates)();
|
|
21
21
|
// UPSERT / DELETE BASED ON WORKFLOW TEMPLATES IDENTIFIER
|
|
22
22
|
logger_1.default.info(`${chalk_1.default.yellow.bold('WORKFLOW TEMPLATES')} Deploying workflow templates.`);
|
|
23
|
+
logger_1.default.info(wtDeclaration);
|
|
23
24
|
for (const workflowKey of Object.keys(wtDeclaration.workflows)) {
|
|
24
25
|
await this.deployWorkflowTemplate(wtDeclaration.workflows[workflowKey], existingWorkflows, wtDeclaration.appIdentifier);
|
|
25
26
|
}
|
|
@@ -34,7 +35,7 @@ class LocalWorkflowTemplateDeployer {
|
|
|
34
35
|
return await this.createNewWorkflowTemplate(identifier, workflow, appIdentifier);
|
|
35
36
|
}
|
|
36
37
|
async createNewWorkflowTemplate(workflowKey, workflowTemplate, appIdentifier) {
|
|
37
|
-
this.populateActionIds(workflowTemplate, workflowKey, appIdentifier);
|
|
38
|
+
await this.populateActionIds(workflowTemplate, workflowKey, appIdentifier);
|
|
38
39
|
const newObject = {
|
|
39
40
|
identifier: getWorkflowTemplateIdentifier(workflowTemplate),
|
|
40
41
|
name: workflowTemplate.name,
|
|
@@ -57,6 +58,7 @@ class LocalWorkflowTemplateDeployer {
|
|
|
57
58
|
async populateActionIds(workflowTemplate, workflowKey, appIdentifier) {
|
|
58
59
|
const installedApps = await (0, apps_1.getInstalledApps)();
|
|
59
60
|
const appOrg = installedApps.find((x) => x.app?.identifier === appIdentifier);
|
|
61
|
+
logger_1.default.info('workflow template:', JSON.stringify(workflowTemplate, null, 2));
|
|
60
62
|
if (!appOrg) {
|
|
61
63
|
throw new Error(`Could not find installed app with identifier "${appIdentifier}". Make sure the app is installed in this org before importing workflows.`);
|
|
62
64
|
}
|
package/oclif.manifest.json
CHANGED