1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(
name = "whirlwind",
about = "Collaborative Reaper project sync for podcasters",
version
)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand)]
pub enum Commands {
/// Initialize whirlwind config and test R2 connection
Init,
/// List all projects and their lock/push status
List,
/// Show status of a project (lock info, last push)
Status { project: String },
/// Download a project from R2 to local working directory
Pull {
project: String,
/// Force download even if local changes exist
#[arg(long)]
force: bool,
},
/// Upload local project changes to R2
Push {
project: String,
/// Skip lock acquisition (use with caution)
#[arg(long)]
no_lock: bool,
},
/// Pull project, launch Reaper, push on exit
Session { project: String },
/// Break a stale lock on a project
Unlock {
project: String,
/// Skip confirmation prompt
#[arg(long)]
force: bool,
},
}