fix(exit): print exit message on exit via ctrl-d

This commit is contained in:
Khaïs COLIN 2025-05-03 19:06:59 +02:00
parent 7fbaec8743
commit 4435b375ef
2 changed files with 11 additions and 7 deletions

View file

@ -9,11 +9,11 @@ fn main() {
match input.parse::<Command>() {
Ok(cmd) => {
if cmd.execute().should_exit {
println!("Good-bye");
break;
}
}
Err(err) => err.display(),
}
}
println!("Good-bye");
}