diff options
| author | mo8it <mo8it@proton.me> | 2024-04-12 20:06:56 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-12 20:06:56 +0200 |
| commit | 24539666afb0e8c80fbccbca7ad212ba8fbd1189 (patch) | |
| tree | cf11a77f3506ac0adcb2c7f332e924b2300dc060 /src/main.rs | |
| parent | 757723a7e8db5822df3b7ca56012448ca292ce4f (diff) | |
Show the final message
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index fdbb710..cdfa21f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 + +"; |
