This commit is contained in:
Jens K.
2024-12-14 18:24:51 +01:00
committed by GitHub
parent 6c7bedabe3
commit b7d6a6c139
7 changed files with 268 additions and 54 deletions

View File

@@ -5,11 +5,14 @@ mod events;
#[cfg(debug_assertions)]
mod logging;
mod args;
mod terminal;
mod utils;
mod widgets;
use app::App;
use args::Args;
use clap::Parser;
use color_eyre::Result;
#[tokio::main]
@@ -20,9 +23,11 @@ async fn main() -> Result<()> {
color_eyre::install()?;
let args = Args::parse();
let terminal = terminal::setup()?;
let events = events::Events::new();
App::new().run(terminal, events).await?;
App::new(args).run(terminal, events).await?;
terminal::teardown()?;
Ok(())