mirror the CLI

This commit is contained in:
Nick Pegg 2025-04-26 20:32:13 -07:00
parent ceb872590f
commit 291350855f
4 changed files with 295 additions and 0 deletions

29
src/main.rs Normal file
View file

@ -0,0 +1,29 @@
use clap::{Parser, Subcommand};
fn main() {
let cli = Cli::parse();
}
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
/// Path to the album
#[arg(long, default_value = ".")]
album_path: String,
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
/// Initialize a new Photojawn album directory
Init {},
/// Generates a photo album
Generate {
#[arg(long)]
quick: bool,
},
/// Remove all generated content from the photo album directory
Clean {},
}