verso/cli.rs
1use clap::{Parser, Subcommand};
2use std::path::PathBuf;
3
4#[derive(Debug, Parser)]
5#[command(name = "verso", version, about = "Terminal EPUB reader")]
6pub struct Cli {
7 #[command(subcommand)]
8 pub command: Option<Command>,
9}
10
11#[derive(Debug, Subcommand)]
12pub enum Command {
13 /// Re-scan the library folder.
14 Scan,
15 /// Export highlights for a book (path or title) to Markdown.
16 Export { target: String },
17 /// Permanently remove soft-deleted books and their highlights (asks first).
18 PurgeOrphans,
19 /// Print the effective config.
20 Config,
21 /// Open an EPUB file directly (testing aid; full library UI arrives later).
22 Open { path: PathBuf },
23}