use clap::{Parser, Subcommand};
use crate::read::{ExtractCmd, ListCmd};
mod read;
#[derive(Parser)]
#[command(version, about, long_about = None)]
#[command(propagate_version = true)]
struct Cli {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
List(ListCmd),
Extract(ExtractCmd),
}
fn main() {
tracing_subscriber::fmt::init();
let args = Cli::parse();
match args.command {
Commands::List(cmd) => cmd.run(),
Commands::Extract(cmd) => cmd.run(),
}
}