rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

[Run] Show prompt output in run command for test and compile examples

Open jan25 opened this issue 2 years ago • 1 comments

rustlings run test|compile_example should output prompt to remove I AM NOT DONE comment in head of example file, to help users how to proceed to next example.

Unsure the historical reason behind why the run command for compile_example just prints success message and for test_example exits silently. I think we can make its default output similar to watch command.

I saw --nocapture flag to get similar behavior described in this issue, but we can clean that flag and make it a default.

I can reopen earlier PR #1217 if this suggestion make sense.

jan25 avatar Oct 01 '22 18:10 jan25

I agree, but this should probably only apply when ran with rustlings run next, as the original purpose of rustlings run is to test solutions out-of-band for a specific exercise. rustlings run next is a fairly recent addition. Would be happy to review a PR for this!

shadows-withal avatar Oct 10 '22 09:10 shadows-withal

Should be resolved by the new handling in v6

mo8it avatar Apr 18 '24 15:04 mo8it