aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: b87ff474b8db7e7189cfdc297ae36bdfa7aafe44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Parser;
use mojibake::{app::App, cli::Cli, errors, logging};

#[tokio::main]
async fn main() -> color_eyre::Result<()> {
    errors::init()?;
    logging::init()?;

    let args = Cli::parse();
    // MJB-LLR-111: the optional positional path is handed to the buffer.
    let mut app = App::new(args.tick_rate, args.frame_rate, args.file)?;
    app.run().await?;
    Ok(())
}