Skip to content

Keep the CLI command lists in step with the commands it runs #129

Closed

Description

@adityankale190895

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.

Activity

  1. added
    enhancement
    good first issue
    on Nov 13, 2026
  2. aniKet0753 commented on Nov 13, 2026

    @aniKet0753
    Contributor

    @adityankale190895
    am working on this, pls assign this to me..

  3. adityankale190895 commented on Nov 13, 2026

    @adityankale190895
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions