cnt_cli 0.4.0

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

mod cli;
mod theme;
mod tui;

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