svamp-cli 0.2.172 → 0.2.173
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/cli.mjs
CHANGED
|
@@ -375,7 +375,7 @@ async function main() {
|
|
|
375
375
|
}), machineId);
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
378
|
-
const { issueCommand } = await import('./commands-
|
|
378
|
+
const { issueCommand } = await import('./commands-DJYdYFKm.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
@@ -398,7 +398,7 @@ async function main() {
|
|
|
398
398
|
} else if (!subcommand || subcommand === "start") {
|
|
399
399
|
await handleInteractiveCommand();
|
|
400
400
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
401
|
-
const pkg = await import('./package-
|
|
401
|
+
const pkg = await import('./package-CAkFTMRZ.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
402
402
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
403
403
|
} else {
|
|
404
404
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -114,7 +114,7 @@ async function issueCommand(args) {
|
|
|
114
114
|
if (flag(rest, "--scope")) opts.scope = flag(rest, "--scope");
|
|
115
115
|
const items = listIssues(root, opts);
|
|
116
116
|
if (json) {
|
|
117
|
-
console.log(JSON.stringify(items));
|
|
117
|
+
console.log(JSON.stringify(items.map(({ body, original, ...r }) => r)));
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
if (!items.length) {
|
|
@@ -288,7 +288,7 @@ ${tail}
|
|
|
288
288
|
const q = positional(rest)[0] || "";
|
|
289
289
|
const items = searchIssues(root, q);
|
|
290
290
|
if (json) {
|
|
291
|
-
console.log(JSON.stringify(items));
|
|
291
|
+
console.log(JSON.stringify(items.map(({ body, original, ...r }) => r)));
|
|
292
292
|
break;
|
|
293
293
|
}
|
|
294
294
|
if (!items.length) {
|