feat: add work items CLI

This commit is contained in:
Affaan Mustafa
2026-05-11 12:13:30 -04:00
committed by Affaan Mustafa
parent 8926ea925e
commit b1e67788f7
8 changed files with 421 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ function main() {
assert.match(result.stdout, /auto-update/);
assert.match(result.stdout, /consult/);
assert.match(result.stdout, /loop-status/);
assert.match(result.stdout, /work-items/);
}],
['delegates explicit install command', () => {
const result = runCli(['install', '--dry-run', '--json', 'typescript']);
@@ -201,6 +202,11 @@ function main() {
assert.strictEqual(result.status, 0, result.stderr);
assert.match(result.stdout, /node scripts\/consult\.js "security reviews"/);
}],
['supports help for the work-items subcommand', () => {
const result = runCli(['help', 'work-items']);
assert.strictEqual(result.status, 0, result.stderr);
assert.match(result.stdout, /node scripts\/work-items\.js upsert/);
}],
['fails on unknown commands instead of treating them as installs', () => {
const result = runCli(['bogus']);
assert.strictEqual(result.status, 1);