rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Feature request: headless mode for check-all

Open Gravifer opened this issue 1 month ago • 2 comments

I am trying to use check-all in CI, but the process would exit with errno 1; this is because the subcommand is designed to be human-friendly, and will just abort if it cannot generate the visualization https://github.com/rust-lang/rustlings/blob/b5d440fdc3a1fadad6dc6196dad2acddabdc671f/src/app_state.rs#L413

Perhaps in check_all_exercises_impl we can revert to a basic synchronous procedure should terminal::size().context("Failed to get the terminal size")? have went the sad path.

I just finished the track and deeply appreciate everything that the contributors have put their hard work into. Wish all the best for rustlings (and rustacean wannabes like me)!

Gravifer avatar Nov 24 '25 21:11 Gravifer

Why do you want to do the checks in a CI?

mo8it avatar Nov 28 '25 11:11 mo8it

The idea was to make sure my solutions are still valid with each new Rust nightly; that way I would know that perhaps it's time for me to renew my understanding of the language basics. (just a thought)

Gravifer avatar Nov 28 '25 15:11 Gravifer