@powerformer/refly-cli 0.1.8 → 0.1.9
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/dist/bin/refly.js +2 -1
- package/dist/bin/refly.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/refly.js
CHANGED
|
@@ -11302,7 +11302,8 @@ var workflowCreateCommand = new Command("create").description("Create a workflow
|
|
|
11302
11302
|
try {
|
|
11303
11303
|
let spec;
|
|
11304
11304
|
try {
|
|
11305
|
-
|
|
11305
|
+
const parsed = JSON.parse(options.spec);
|
|
11306
|
+
spec = Array.isArray(parsed) ? { nodes: parsed } : parsed;
|
|
11306
11307
|
} catch {
|
|
11307
11308
|
fail(ErrorCodes.INVALID_INPUT, "Invalid JSON in --spec", {
|
|
11308
11309
|
hint: "Ensure the spec is valid JSON"
|