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
46
47
48
49
50
51
52
53
#[derive(clap::Args)]
pub struct UploadArgs {
/// Local audio file to upload
pub file: String,
/// Suno upload type value
#[arg(long, default_value = "file_upload")]
pub upload_type: String,
/// Mark the uploaded audio as a stem mix
#[arg(long)]
pub stem_mix: bool,
/// Optional clip title to set after initialization
#[arg(short, long)]
pub title: Option<String>,
/// Optional lyrics to set after initialization
#[arg(long, conflicts_with = "lyrics_file")]
pub lyrics: Option<String>,
/// Read optional lyrics from a file
#[arg(long)]
pub lyrics_file: Option<String>,
/// Max wait time for Suno upload processing, in seconds
#[arg(long)]
pub timeout: Option<u64>,
}
#[derive(clap::Args)]
pub struct DownloadArgs {
/// Clip ID(s) to download
pub ids: Vec<String>,
/// Output directory
#[arg(short, long)]
pub output: Option<String>,
/// Download video instead of audio
#[arg(long)]
pub video: bool,
}
#[derive(clap::Args)]
pub struct TimedLyricsArgs {
/// Clip ID
pub id: String,
/// Output as LRC format
#[arg(long)]
pub lrc: bool,
}