fix: help is no longer bugged out
cargo devel CI / cargo CI (push) Successful in 1m19s Details

This commit is contained in:
Christoph J. Scherr 2024-07-09 20:13:48 +02:00
parent c5df9cce34
commit 8092f2c000
1 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,9 @@ use self::clock::Clock;
mod clock;
fn main() -> anyhow::Result<()> {
// setup the cli
let clock = Clock::parse();
// setup terminal
enable_raw_mode()?;
let mut stdout = io::stdout();
@ -21,8 +24,7 @@ fn main() -> anyhow::Result<()> {
let backend = CrosstermBackend::new(stdout);
let mut terminal = Terminal::new(backend)?;
let clock = Clock::parse();
clock.run(&mut terminal)?;
let result = clock.run(&mut terminal);
// restore terminal
disable_raw_mode()?;
@ -33,5 +35,5 @@ fn main() -> anyhow::Result<()> {
)?;
terminal.show_cursor()?;
Ok(())
result
}