| 1 |
//! Main entrypoint for the application. |
| 2 |
|
| 3 |
use bottom::{reset_stdout, start_bottom}; |
| 4 |
|
| 5 |
fn main() -> anyhow::Result<()> { |
| 6 |
let mut run_error_hook = false; |
| 7 |
|
| 8 |
start_bottom(&mut run_error_hook).inspect_err(|_| { |
| 9 |
if run_error_hook { |
| 10 |
reset_stdout(); |
| 11 |
} |
| 12 |
}) |
| 13 |
} |