clankers-cli 0.1.3

Command-line interface for clankeRS
1
2
3
4
5
6
7
8
9
10
11
12
use anyhow::Result;
use clankers_data::Replay;

pub async fn execute(file: &str) -> Result<()> {
    let replay = Replay::from_mcap(file).map_err(|e| anyhow::anyhow!("{e}"))?;
    let result = replay
        .run(|_msg| async { Ok(()) })
        .await
        .map_err(|e| anyhow::anyhow!("{e}"))?;
    println!("{}", result.latency.format_report());
    Ok(())
}