svamp-cli 0.2.146 → 0.2.147
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-BehT4StJ.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
|
|
@@ -394,7 +394,7 @@ async function main() {
|
|
|
394
394
|
} else if (!subcommand || subcommand === "start") {
|
|
395
395
|
await handleInteractiveCommand();
|
|
396
396
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
397
|
-
const pkg = await import('./package-
|
|
397
|
+
const pkg = await import('./package-B-olGbjq.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
398
398
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
399
399
|
} else {
|
|
400
400
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync
|
|
1
|
+
import { existsSync, readFileSync, unlinkSync, readdirSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
|
|
2
2
|
import { join, dirname } from 'node:path';
|
|
3
3
|
import { execFileSync } from 'node:child_process';
|
|
4
4
|
|
|
@@ -357,6 +357,13 @@ ${issue.body}`);
|
|
|
357
357
|
ok(updated, `Commented on #${updated.id}`);
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
|
+
case "pending": {
|
|
361
|
+
const pending = listIssues(root).filter((i) => i.status === "ready" || i.status === "in_progress");
|
|
362
|
+
if (json) console.log(JSON.stringify(pending));
|
|
363
|
+
else out(pending.length ? `${pending.length} pending: ${pending.map((i) => "#" + i.id).join(" ")}` : "No pending issues.");
|
|
364
|
+
process.exit(pending.length ? 1 : 0);
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
360
367
|
case "search": {
|
|
361
368
|
const q = positional(rest)[0] || "";
|
|
362
369
|
const items = searchIssues(root, q);
|
|
@@ -384,6 +391,7 @@ ${issue.body}`);
|
|
|
384
391
|
" ready <id> | start <id> | close <id> | reopen <id> | backlog <id> | archive <id>",
|
|
385
392
|
" edit <id> [--title \u2026] [--label x] [--verify-cmd \u2026] [--no-verify] [--status \u2026] [--body \u2026]",
|
|
386
393
|
' comment <id> "<text>" # append a follow-up to the issue',
|
|
394
|
+
" pending # exit 0 if no ready/in-progress issues (loop oracle)",
|
|
387
395
|
' search "<query>" [--json]'
|
|
388
396
|
].join("\n"));
|
|
389
397
|
break;
|