use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "pdfx")]
#[command(about = "🛠️ A lightning-fast terminal-native PDF toolkit")]
#[command(version = "0.1.0")]
#[command(author = "ions <zara.leonardo@gmail.com>")]
#[command(
long_about = "pdfx is a lightning-fast terminal-native PDF toolkit. It allows you to index, search, and manage your PDF files with ease."
)]
pub struct Cli {
#[command(subcommand)]
pub command: Option<Commands>,
}
#[derive(Subcommand)]
pub enum Commands {
Init {
path: Option<PathBuf>,
},
Search {
query: String,
},
Recent {
#[arg(short, long, default_value = "10")]
limit: i32,
},
List {
#[arg(short, long)]
all: bool,
},
Cleanup,
}