Show the final message

This commit is contained in:
mo8it
2024-04-12 20:06:56 +02:00
parent 757723a7e8
commit 24539666af
4 changed files with 24 additions and 15 deletions
+4 -2
View File
@@ -68,7 +68,7 @@ fn main() -> Result<()> {
exit(1);
}
let mut app_state = AppState::new(exercises);
let mut app_state = AppState::new(exercises, info_file.final_message.unwrap_or_default());
match args.command {
None => loop {
@@ -144,4 +144,6 @@ const FENISH_LINE: &str = "+----------------------------------------------------
▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒
▒▒ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒ ▒▒
▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒
▒▒ ▒▒ ▒▒ ▒▒\x1b[0m";
▒▒ ▒▒ ▒▒ ▒▒\x1b[0m
";