Skip to content

feat(cli): add version flag support to wrapper and main binary#19

Merged
benbenbang merged 1 commit into
mainfrom
feat/add_new_flag
Mar 27, 2026
Merged

feat(cli): add version flag support to wrapper and main binary#19
benbenbang merged 1 commit into
mainfrom
feat/add_new_flag

Conversation

@benbenbang

Copy link
Copy Markdown
Owner

This pull request adds version flag support to both the uv plugin wrapper (adds-on) and the main uv-shell binary, allowing users to check the version of each component independently.

Version flag implementation:

  • Added --version and -V flag handling to adds-on/src/main.rs that displays the plugin wrapper version using the CARGO_PKG_VERSION environment variable at compile time.
  • Added --version and -V flag handling to src/main.rs that displays the uv-shell version, providing early exit before subcommand dispatch.

Documentation updates:

  • Updated help text in both binaries to document the new version flags, making them discoverable through --help output.

This pull request adds version flag support to both the uv plugin wrapper (adds-on) and the main uv-shell binary, allowing users to check the version of each component independently.

**Version flag implementation:**
* Added `--version` and `-V` flag handling to `adds-on/src/main.rs` that displays the plugin wrapper version using the CARGO_PKG_VERSION environment variable at compile time.
* Added `--version` and `-V` flag handling to `src/main.rs` that displays the uv-shell version, providing early exit before subcommand dispatch.

**Documentation updates:**
* Updated help text in both binaries to document the new version flags, making them discoverable through `--help` output.
@benbenbang
benbenbang enabled auto-merge (squash) March 27, 2026 18:20
@github-actions github-actions Bot added enhancement New feature or request triage labels Mar 27, 2026
@benbenbang
benbenbang merged commit 797d8a8 into main Mar 27, 2026
2 checks passed
@benbenbang
benbenbang deleted the feat/add_new_flag branch March 27, 2026 18:21
@ptah-technical-app

Copy link
Copy Markdown

🎉 This PR is included in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

enhancement New feature or request released triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant