Skip to content

feat(cli): 支持版本号参数 - #7

Merged
CodeHourra merged 1 commit into
masterfrom
feat/cli-version-flag
May 31, 2026
Merged

CodeHourra merged 1 commit into
masterfrom
feat/cli-version-flag

Conversation

@CodeHourra

Copy link
Copy Markdown
Owner

Summary

  • Add -v and --version global flags for printing the CLI package version.
  • Document the new flags in CLI help output.
  • Add a patch changeset for the next npm release.

Test plan

  • bun run typecheck && bun test
  • bun run build && node dist/index.js -v && node dist/index.js --version

Made with Cursor

新增 -v 和 --version 全局参数,直接读取 package.json 输出当前 CLI 版本,并补充回归测试和 patch changeset。

Co-authored-by: Cursor <cursoragent@cursor.com>
@CodeHourra
CodeHourra merged commit ce1371c into master May 31, 2026
1 check 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