From 7b7faf70dbdd83020b4bf6f9c3242a994c97665a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 29 Jul 2025 21:55:31 +0200 Subject: Add exercises to the practice command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The '-e/--exercises' has also been introduced to instruct the 'practice' command to only go for exercises, and the '-k/--kind' flag allows the user to further filter which kind of exercise to practice. Signed-off-by: Miquel Sabaté Solà --- crates/cli/src/exercises.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/cli/src/exercises.rs') diff --git a/crates/cli/src/exercises.rs b/crates/cli/src/exercises.rs index a4bff78..b153aca 100644 --- a/crates/cli/src/exercises.rs +++ b/crates/cli/src/exercises.rs @@ -195,7 +195,7 @@ fn rm(mut args: IntoIter) -> i32 { match ans { Ok(true) => match mihi::delete_exercise(selection) { - Ok(_) => println!("Removed '{}' from the database!", selection), + Ok(_) => println!("Removed '{selection}' from the database!"), Err(e) => { println!("error: words: {e}"); return 1; -- cgit v1.2.3