feat(cli): add cougr doctor environment validation command - #307
Open
notoflagosola-wq wants to merge 1 commit into
Open
feat(cli): add cougr doctor environment validation command#307notoflagosola-wq wants to merge 1 commit into
cougr doctor environment validation command#307notoflagosola-wq wants to merge 1 commit into
Conversation
Implements the `cougr doctor` subcommand that checks the local development environment and reports pass/fail per requirement with an actionable fix command for each failure. Checks performed: - cargo present on PATH (sanity check) - Rust toolchain >= 1.70.0 (from workspace Cargo.toml rust-version) - wasm32v1-none target installed (via rustup target list --installed) - Stellar CLI >= 21.0.0 present on PATH Each failure prints the exact fix command, e.g.: rustup target add wasm32v1-none cargo install --locked stellar-cli A summary line N/M checks passed is printed; the command exits non-zero if any check fails. `cougr doctor` is also invoked non-fatally (as a warning) at the start of `cougr new` so environment problems are surfaced before the developer hits a confusing downstream build error. Closes salazarsebas#297
|
@notoflagosola-wq Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
salazarsebas
requested changes
Aug 25, 2026
salazarsebas
left a comment
Owner
There was a problem hiding this comment.
Implementation looks solid — clear separation between checks, good fix-command messaging, decent test coverage on version parsing. cargo fmt --check is failing in CI on two spots in doctor.rs (lines ~186 and ~453). Can you run cargo fmt and push? Once that's green this is good to merge from my side.
Owner
|
Hey @notoflagosola-wq , what are the updates on this pull request? |
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.
Implements the
cougr doctorsubcommand that checks the local development environment and reports pass/fail per requirement with an actionable fix command for each failure.Checks performed:
Each failure prints the exact fix command, e.g.:
rustup target add wasm32v1-none cargo install --locked stellar-cli
A summary line N/M checks passed is printed; the command exits non-zero if any check fails.
cougr doctoris also invoked non-fatally (as a warning) at the start ofcougr newso environment problems are surfaced before the developer hits a confusing downstream build error.Closes #297