Skip to content

Add --version flag to xcrs and document cargo install - #45

Open
setoelkahfi wants to merge 1 commit into
developmentfrom
add-xcrs-version-flag-and-install-docs
Open

Add --version flag to xcrs and document cargo install#45
setoelkahfi wants to merge 1 commit into
developmentfrom
add-xcrs-version-flag-and-install-docs

Conversation

@setoelkahfi

Copy link
Copy Markdown
Collaborator

What

Two small fixes for the standalone xcrs CLI, discovered while debugging why a Homebrew smb install didn't surface the xcrs automation tools.

A. xcrs --version flagxcrs previously had no --version; running it errored with "unexpected argument". Added #[command(version)] to the clap Cli struct so xcrs --version / xcrs -V report the crate version, matching smb and the version recorded in the MCP registry (server-xcrs.json).

$ xcrs --version
xcrs 0.5.0

B. Install docs — documented in docs/mcp.md that xcrs is installed via cargo install xcrs (crates.io), not Homebrew. brew install smbcloud-cli ships only the smb binary; smb --mcp --scope automation exposes the same automation tools without a separate install.

Why

The --version gap is also a prerequisite for the planned NuGet distribution of xcrs (its smoke test runs xcrs --version). The docs note prevents the "I installed it via Homebrew but xcrs is missing" confusion.

Validation

  • cargo fmt --all -- --check — clean
  • cargo clippy --package xcrs --tests -- -D warnings — clean
  • Release build + xcrs --version / xcrs -V confirmed

Release Notes:

  • Added a --version flag to the xcrs CLI.

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>
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