wickra-xray 0.1.1

Reference command-line X-Ray over the Wickra wickra-xray-core: load a spec and a recorded dataset, build a frame, print it as text or JSON.
//! The `wickra-xray` reference CLI.
//!
//! Loads an [`XraySpec`](wickra_xray_core::XraySpec) and a recorded dataset (a
//! directory of per-stream JSON files or a dataset JSON on stdin), builds a
//! frame through `wickra-xray-core`, and prints it as text or JSON.

mod args;
mod run;

use args::Args;
use clap::Parser;
use std::process::ExitCode;

fn main() -> ExitCode {
    let args = Args::parse();
    match run::run(&args) {
        Ok(output) => {
            println!("{output}");
            ExitCode::SUCCESS
        }
        Err(err) => {
            eprintln!("wickra-xray: {err}");
            ExitCode::FAILURE
        }
    }
}