You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the CLI command lists in step with the commands it runs #129
packages/diffci-cli/src/client/cli.ts lists the CLI's commands by hand in two places, and both have drifted from the commands it actually runs:
The header comment (cli.ts:11-25) is missing watch, agent-stop, telemetry, pilot, pilot-packet, coverage and outcomes. All of them are handled in the switch at L1525-L1583.
The red-builds line in USAGE (L1387) omits --check-jobs <regex> and --ci-only-jobs <regex>, which the command accepts (red-builds.ts:468-469).
Bring both up to date. Then add a test so this doesn't drift again: run the built CLI with help the way plan-cli.test.ts runs it, and check that every command main() handles (the three early process.argv[2] checks plus each case) appears in the output as diffci <command>. A hard-coded list in the test is fine, as long as the test says to update it when a command is added.
Done when: the header comment and USAGE name every command main() handles, the red-builds usage line shows all its flags, and the new test passes with npm test in packages/diffci-cli. No behaviour change.
Setup and conventions are in CONTRIBUTING.md: run npm test, sign off commits with git commit -s (DCO). Comment here if you want to take it, and ask anything.
Thanks @aniKet0753, it's yours. The "Done when" in the issue is the scope: update the header comment and USAGE, add the missing red-builds flags, and add a help test that fails when a command is missing. There should be no behaviour change. Please sign off commits with git commit -s (DCO), and ask here if anything's unclear.
Activity
aniKet0753 commentedon Nov 13, 2026
@adityankale190895
am working on this, pls assign this to me..
adityankale190895 commentedon Nov 13, 2026
Thanks @aniKet0753, it's yours. The "Done when" in the issue is the scope: update the header comment and
USAGE, add the missingred-buildsflags, and add ahelptest that fails when a command is missing. There should be no behaviour change. Please sign off commits withgit commit -s(DCO), and ask here if anything's unclear.