summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-13 02:32:25 +0200
committermo8it <mo8it@proton.me>2024-05-13 02:32:25 +0200
commitf9e35a4344cd7d51923f1983cf824fb36be92d50 (patch)
tree6a41653c14dcce73c398ebfec3051102d2c2566a /src/run.rs
parent052573904604896398a6cc7281398fa9fdf8f083 (diff)
Improve input handling
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index 9b5ddd3..ac97414 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -41,7 +41,11 @@ pub fn run(app_state: &mut AppState) -> Result<()> {
match app_state.done_current_exercise(&mut stdout)? {
ExercisesProgress::AllDone => (),
- ExercisesProgress::Pending => println!(
+ ExercisesProgress::CurrentPending => println!(
+ "Current exercise: {}",
+ app_state.current_exercise().terminal_link(),
+ ),
+ ExercisesProgress::NewPending => println!(
"Next exercise: {}",
app_state.current_exercise().terminal_link(),
),