Skip to content

feat: add --version / -v flag to CLI#725

Merged
backnotprop merged 1 commit into
mainfrom
feat/version-flag
May 13, 2026
Merged

feat: add --version / -v flag to CLI#725
backnotprop merged 1 commit into
mainfrom
feat/version-flag

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

Summary

  • Adds --version and -v flags that print plannotator <version> and exit
  • Version is injected at compile time via Bun's --define in the release workflow, reading from package.json
  • Uncompiled dev runs fall back to plannotator dev

Test plan

  • Unit tests pass (bun test apps/hook/server/cli.test.ts — 6/6)
  • Compiled binary smoke test: --version and -v both print plannotator 0.19.16
  • --help output includes the new flag
  • Verify release workflow compiles correctly on CI (dry-run)

Injects the version from package.json at compile time via Bun's --define
so compiled binaries report the correct version (e.g. `plannotator 0.19.16`).
Uncompiled dev runs fall back to `plannotator dev`.
@backnotprop backnotprop merged commit 3f91cd7 into main May 13, 2026
10 checks passed
@backnotprop backnotprop deleted the feat/version-flag branch May 13, 2026 23:22
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