Skip to content

feat(cli): add --version / -v flag to specorator CLI#424

Merged
Luis85 merged 3 commits into
developfrom
worktree-feat+418-cli-version-flag
May 9, 2026
Merged

feat(cli): add --version / -v flag to specorator CLI#424
Luis85 merged 3 commits into
developfrom
worktree-feat+418-cli-version-flag

Conversation

@Luis85
Copy link
Copy Markdown
Owner

@Luis85 Luis85 commented May 9, 2026

Closes #418.

Summary

  • specorator --version prints specorator v<version> on stdout, exits 0.
  • -v alias works identically.
  • Version sourced from package.json#version via the existing VERSION constant.
  • Two new contract tests in tests/scripts/cli.test.ts (--version and -v).
  • Install docs updated: Step 1 smoke test and Verify section now use specorator --version instead of the no-arg banner workaround.
  • "Until v0.7.1 ships a dedicated --version flag" notes dropped from both docs/how-to/install-claude-plugin.md and docs/superpowers/plans/2026-05-09-plugin-first-install.md.

Test plan

  • npx vitest run tests/scripts/cli.test.ts — 15 tests pass (2 new for --version / -v).
  • npm run verify — green.
  • CI green on this PR.

🤖 Generated with Claude Code

Symprowire and others added 3 commits May 9, 2026 18:57
Closes #418. `specorator --version` now prints `specorator v<version>`
and exits 0, sourcing the version from package.json. Adds `-v` alias.

Replaces the no-arg banner workaround in install docs and Task 1 /
Task 3 of the plugin-first-install plan.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merging develop brought in the #419 fix (-V uppercase, bare VERSION
output) alongside #424's handler (-v lowercase, prefixed output).
Unified into one guard covering --version, -V, and -v — all print
specorator v<version>. Added -V contract test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Luis85 Luis85 merged commit 02127ab into develop May 9, 2026
6 checks passed
@Luis85 Luis85 deleted the worktree-feat+418-cli-version-flag branch May 9, 2026 17:20
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.

feat(cli): add real --version subcommand to specorator CLI

2 participants