From 48062142c6e2da96198aed4540ceee97a8385a0d Mon Sep 17 00:00:00 2001 From: iff Date: Mon, 31 Jul 2023 14:27:44 +0200 Subject: [PATCH] add: print command if it is not found --- src/main.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 81d12da..aa9fddb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +use colored::Colorize; + mod args; mod corrections; mod shell; @@ -16,11 +18,7 @@ fn main() { if let Some(corrected_command) = corrected_command { corrections::confirm_correction(&shell, &corrected_command, &last_command); } else { - println!( - " -No correction found. - -If you think there should be a correction, please open an issue or send a pull request!" - ); + println!("No correction found for the command: {}\n", last_command.red().bold()); + println!("If you think there should be a correction, please open an issue or send a pull request!"); } }