mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
feat: match file
This commit is contained in:
parent
5858b5b88b
commit
7cfe075da6
5 changed files with 94 additions and 25 deletions
17
src/main.rs
17
src/main.rs
|
|
@ -16,12 +16,15 @@ fn main() {
|
|||
let corrected_command = corrections::correct_command(&shell, &last_command);
|
||||
|
||||
if let Some(corrected_command) = corrected_command {
|
||||
corrections::confirm_correction(&shell, &corrected_command, &last_command);
|
||||
} else {
|
||||
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!");
|
||||
if corrected_command != last_command {
|
||||
corrections::confirm_correction(&shell, &corrected_command, &last_command);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue