@contrail/cli 3.5.3-alpha.8e9fe43 → 3.5.3-alpha.b575364

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.8e9fe43 linux-x64 node-v24.16.0
20
+ @contrail/cli/3.5.3-alpha.b575364 linux-x64 node-v24.16.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -100,18 +100,13 @@ async function exportWorkflowsByApp(outputDir, overwrite) {
100
100
  for (const workflow of workflows) {
101
101
  exportObj.workflows.push(await buildExportWorkflow(workflow, allSchedules));
102
102
  }
103
- const filePath = path.join(resolvedDir, `workflows-${appIdentifier}.yml`);
103
+ const safeAppIdentifier = appIdentifier.replace(/[\\/]/g, '-');
104
+ const filePath = path.join(resolvedDir, `workflows-${safeAppIdentifier}.yml`);
104
105
  await writeYamlFile(exportObj, filePath, overwrite);
105
106
  console.log(`${chalk_1.default.green('EXPORTED')} ${filePath}`);
106
107
  }
107
108
  if (unassigned.length > 0) {
108
- const exportObj = { workflows: [] };
109
- for (const workflow of unassigned) {
110
- exportObj.workflows.push(await buildExportWorkflow(workflow, allSchedules));
111
- }
112
- const filePath = path.join(resolvedDir, exports.DEFAULT_FILE_LOCATION);
113
- await writeYamlFile(exportObj, filePath, overwrite);
114
- console.log(`${chalk_1.default.green('EXPORTED')} ${filePath}`);
109
+ console.log(`${chalk_1.default.yellow('SKIPPED')} ${unassigned.length} workflows could not be associated with an app. Re-run with --outFile to export them to a single file.`);
115
110
  }
116
111
  }
117
112
  exports.exportWorkflowsByApp = exportWorkflowsByApp;
@@ -149,5 +144,6 @@ async function writeYamlFile(data, absolutePath, overwrite) {
149
144
  if (fs_1.default.existsSync(absolutePath)) {
150
145
  await (0, file_helpers_1.safeFileOverwrite)(absolutePath, overwrite);
151
146
  }
147
+ fs_1.default.mkdirSync(path.dirname(absolutePath), { recursive: true });
152
148
  fs_1.default.writeFileSync(absolutePath, js_yaml_1.default.dump(data), 'utf8');
153
149
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.3-alpha.8e9fe43",
2
+ "version": "3.5.3-alpha.b575364",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.5.3-alpha.8e9fe43",
3
+ "version": "3.5.3-alpha.b575364",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",