Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(cli): separate help usage from prose [N37]

Corey Olson31225abaf5d7
diff --git a/src/cli.js b/src/cli.js
index 1b7fc430..60fc8f9c 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -59,10 +59,10 @@ Set up
pullboard tour see it work: a reject and its rework, scripted, in thirty seconds
pullboard init config, SPEC.md, agent instructions, git hooks, board
pullboard worktree <lane> [--route light] make a worktree for a new agent in a lane, joined, and say what to run next
- pullboard join <lane> [--route light] register the worktree you are in as an agent in a lane
+ pullboard join <lane> [--route light] register the worktree you are in as an agent in a lane
--route light: a lighter model that takes only items routed light
pullboard whoami | lanes | status who you are, the lanes, the board at a glance
- pullboard view [--port N] [--no-open] every project on this machine in your browser: items, shouts, doctrine,
+ pullboard view [--port N] [--no-open] every project on this machine in your browser: items, shouts, doctrine,
agents and activity, live; add items, shout and hold lanes from it
pullboard resume where you are: your claim, branch, uncommitted work, what came back,
unread shouts, what to do next; run it to start any session
@@ -95,10 +95,11 @@ Work
pullboard verify <id> accept --note "what you broke or which edge you tried, and what happened"
pullboard verify <id> reject --reason TEST_FAILURE --note "what failed"
any --note can be --note-file <file>, which keeps quotes, $ and backticks intact
- pullboard shout <lane|agent|person|all> <text> pullboard inbox
+ pullboard shout <lane|agent|person|all> <text> pullboard inbox
pullboard shout [<to>] <text> --decision ask for a decision; defaults to your coordinator or the person
pullboard shout <to> <text> --evidence attempt|receipt --outcome <word> --item <id> --commit <rev>
- pullboard answer <shout-id> <text> [--as person] answer your decision; person mode is main-checkout only
+ pullboard answer <shout-id> <text> [--as person]
+ answer your decision; person mode is main-checkout only
pullboard pass <shout-id> <note> coordinator passes a decision to the person
pullboard decisions [--as person] shouts waiting for you; main checkout defaults to coordinator
pullboard export print the whole board as versioned JSON
diff --git a/test/e2e.test.js b/test/e2e.test.js
index f38b3ce4..968baf2b 100644
--- a/test/e2e.test.js
+++ b/test/e2e.test.js
@@ -1164,6 +1164,24 @@ test('verify and escalate take a note from a file, exactly as written [V12]', ()
assert.match(box.run(box.repo, 'help').out, /--note-file <file>/);
});
+test('the help keeps every command description apart from its usage [N37]', () => {
+ const box = sandbox();
+ const help = box.run(box.dir, 'help').out;
+ const commandLines = help.split('\n').filter((line) => line.startsWith(' pullboard '));
+ for (const line of commandLines) {
+ const hasDescriptionGap = / {2,}\S/.test(line.slice(' pullboard '.length));
+ const usageOnly = /(?:<[^<>]+>|\[[^\[\]]+\]|"[^"]*")$/.test(line);
+ assert.ok(hasDescriptionGap || usageOnly, `command usage runs into its description: ${line}`);
+ }
+ const lines = help.split('\n');
+ const answerLine = lines.findIndex((line) => line.startsWith(' pullboard answer '));
+ const answerDescription = lines[answerLine + 1];
+ assert.ok(
+ answerLine >= 0 && answerDescription?.startsWith(`${' '.repeat(40)}answer your decision;`),
+ 'the answer description follows its usage at the description column',
+ );
+});
+
test('output into a reader that stops early ends quietly [N24]', async () => {
const box = project();
for (let n = 0; n < 40; n++) box.run(box.repo, 'add', 'web', `Item ${n}`, '--specs', 'G1');