cnt_cli 0.2.0

Command line interface for the embedded counters crate - cnt
1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::Parser;
use cnt_core::Counters;
use anyhow::Result;

mod cli;
mod tui;

fn main() -> Result<()> {
    let cli = cli::Cli::parse();
    let counters = Counters::load_elf(&cli.elf_path)?;
    cli::process_cmd(cli.command, counters)?;
    Ok(())
}