og-bff/bff-cli/src/main.rs
2023-05-26 13:29:35 -04:00

28 lines
515 B
Rust

use std::path::PathBuf;
use clap::*;
mod extract;
#[derive(Subcommand)]
enum Commands {
Extract {
bigfile: PathBuf,
directory: PathBuf,
},
}
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
struct Args {
#[command(subcommand)]
command: Commands,
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Args::parse();
match &cli.command {
Commands::Extract { bigfile, directory } => extract::extract(bigfile, directory),
}
}