mirror the CLI
This commit is contained in:
parent
ceb872590f
commit
291350855f
4 changed files with 295 additions and 0 deletions
29
src/main.rs
Normal file
29
src/main.rs
Normal 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 {},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue