Add --version flag to xcrs and document cargo install - #45
Open
setoelkahfi wants to merge 1 commit into
Open
Conversation
xcrs previously had no --version flag; `xcrs --version` errored. Add `#[command(version)]` so it reports its crate version, matching `smb` and the version recorded in the MCP registry. Also document that `xcrs` is installed via `cargo install xcrs` from crates.io, not Homebrew, since `brew install smbcloud-cli` ships only the `smb` binary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
setoelkahfi
force-pushed
the
add-xcrs-version-flag-and-install-docs
branch
from
August 3, 2026 09:32
e528993 to
888debe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two small fixes for the standalone
xcrsCLI, discovered while debugging why a Homebrewsmbinstall didn't surface the xcrs automation tools.A.
xcrs --versionflag —xcrspreviously had no--version; running it errored with "unexpected argument". Added#[command(version)]to the clapClistruct soxcrs --version/xcrs -Vreport the crate version, matchingsmband the version recorded in the MCP registry (server-xcrs.json).B. Install docs — documented in
docs/mcp.mdthatxcrsis installed viacargo install xcrs(crates.io), not Homebrew.brew install smbcloud-cliships only thesmbbinary;smb --mcp --scope automationexposes the same automation tools without a separate install.Why
The
--versiongap is also a prerequisite for the planned NuGet distribution ofxcrs(its smoke test runsxcrs --version). The docs note prevents the "I installed it via Homebrew but xcrs is missing" confusion.Validation
cargo fmt --all -- --check— cleancargo clippy --package xcrs --tests -- -D warnings— cleanxcrs --version/xcrs -VconfirmedRelease Notes:
--versionflag to thexcrsCLI.