Skip to content

feat(cli): add --version and -V flags - #1230

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-9487-add-version-flag-to-the-cli
Sep 29, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-9487-add-version-flag-to-the-cli

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • --version and -V print corbits v plus the running package.json version and exit 0
  • --help documents the flag

Verification

  • bun test ./src/config.test.ts ./src/index.test.ts --randomize --seed 424242 — 156 pass, 0 fail
  • lint, typecheck, dead-exports, and build pass under bun run check
  • --version / -V emit CliVersionError with corbits v<package.json version>; cliCaughtExit writes it to stdout with code 0

Fixes CL-9487

@linear-code

linear-code Bot commented Sep 29, 2026

Copy link
Copy Markdown

CL-9487

The store test imported tests/helpers/mock-module.js, which is not
in the tree. The helper lives in testkit.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9487-add-version-flag-to-the-cli branch from 1ab6d37 to b5d1717 Compare September 29, 2026 23:18
@TheGreatAxios
TheGreatAxios merged commit 37ca488 into main Sep 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant