diff options
| author | Roberto Vidal <vidal.roberto.j@gmail.com> | 2019-11-12 11:35:40 +0100 |
|---|---|---|
| committer | Roberto Vidal <vidal.roberto.j@gmail.com> | 2019-11-12 11:35:40 +0100 |
| commit | 4b26546589f7d2b50455429482cf1f386ceae8b3 (patch) | |
| tree | 66ff06c0bf1fb6dce88485212148a2c5b2e167d8 /src/run.rs | |
| parent | bc56788fe637f6ff16c1e445a230b01544d2d9cf (diff) | |
fix(run): makes `run` never prompt
`watch` and `verify` do prompt the user to actively move to the
next exercise. This change fixes `run` to never prompt. Previously
it was inconsistent between "test" and "compile" exercises.
BREAKING CHANGE: we again change the behavior of the `run` command
Diffstat (limited to 'src/run.rs')
| -rw-r--r-- | src/run.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -5,9 +5,7 @@ use indicatif::ProgressBar; pub fn run(exercise: &Exercise) -> Result<(), ()> { match exercise.mode { - Mode::Test => { - test(exercise)?; - } + Mode::Test => test(exercise)?, Mode::Compile => compile_and_run(exercise)?, } Ok(()) |
