Invoke the rust compiler without running the resulting binary
(exercise: &Exercise)
| 40 | |
| 41 | // Invoke the rust compiler without running the resulting binary |
| 42 | fn compile_only(exercise: &Exercise) -> Result<bool, ()> { |
| 43 | let progress_bar = ProgressBar::new_spinner(); |
| 44 | progress_bar.set_message(format!("Compiling {}...", exercise).as_str()); |
| 45 | progress_bar.enable_steady_tick(100); |
| 46 | |
| 47 | let _ = compile(exercise, &progress_bar)?; |
| 48 | progress_bar.finish_and_clear(); |
| 49 | |
| 50 | success!("Successfully compiled {}!", exercise); |
| 51 | Ok(prompt_for_completion(exercise, None)) |
| 52 | } |
| 53 | |
| 54 | // Compile the given Exercise and run the resulting binary in an interactive mode |
| 55 | fn compile_and_run_interactively(exercise: &Exercise) -> Result<bool, ()> { |
no test coverage detected