use clap::{Parser, Subcommand, ValueEnum};
use std::path::PathBuf;
#[derive(Parser)]
#[command(
version,
name = "roxide",
author = "Abhinandh S <ugabhi@proton.me>",
about = "roxide",
//long_about = "By default, roxide does not remove directories.Use the --recursive (-r) option to remove each listed directory, too, along with all of its contents.\n
// To remove a file whose name starts with a '-', for example '-foo',\n
// use one of these commands:\n
// roxide -- -foo\n
// roxide ./-foo\n
// If you use roxide to remove a file, it might be possible to recover the file/directory.\n
// Files are trashed to XDG specified trash directory.\n
// Example:\n
// `$HOME`/.local/share/Trash/files\n"
)]
pub struct Cli {
pub file: Option<Vec<PathBuf>>,
#[arg(short, long)]
pub recursive: bool,
#[arg(short, long)]
pub list: bool,
#[cfg(feature = "extra_commands")]
#[arg(short, long)]
pub interactive: Option<InteractiveMode>,
#[arg(short = 'p', long = "pattern", value_name = "PATTERN")] pub pattern: Option<String>,
#[arg(short, long, value_name = "FILE")]
pub force: Option<Vec<PathBuf>>,
#[arg(short, long)]
pub verbose: bool,
#[cfg(feature = "extra_commands")]
#[arg(short, long)]
pub dev: bool,
#[command(subcommand)]
pub command: Option<Commands>,
}
#[derive(Subcommand)]
pub enum Commands {
Revert {},
}
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
pub enum InteractiveMode {
Never,
Once,
Always,
PromptProtected,
}