use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(
name = "tblctl",
version,
about = "Converts and checks tables for Markdown docs"
)]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand)]
pub enum Command {
Classify {
#[arg(required = true)]
files: Vec<PathBuf>,
#[arg(long)]
json: bool,
},
Import {
file: PathBuf,
#[arg(long)]
sheet: Option<String>,
#[arg(long)]
out: PathBuf,
},
Check {
#[arg(required = true)]
files: Vec<PathBuf>,
},
Export {
file: PathBuf,
#[arg(long)]
out: PathBuf,
},
}