mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
add: print command if it is not found
This commit is contained in:
parent
136a42cfcd
commit
48062142c6
1 changed files with 4 additions and 6 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -1,3 +1,5 @@
|
||||||
|
use colored::Colorize;
|
||||||
|
|
||||||
mod args;
|
mod args;
|
||||||
mod corrections;
|
mod corrections;
|
||||||
mod shell;
|
mod shell;
|
||||||
|
|
@ -16,11 +18,7 @@ fn main() {
|
||||||
if let Some(corrected_command) = corrected_command {
|
if let Some(corrected_command) = corrected_command {
|
||||||
corrections::confirm_correction(&shell, &corrected_command, &last_command);
|
corrections::confirm_correction(&shell, &corrected_command, &last_command);
|
||||||
} else {
|
} else {
|
||||||
println!(
|
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!");
|
||||||
No correction found.
|
|
||||||
|
|
||||||
If you think there should be a correction, please open an issue or send a pull request!"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue