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
54
55
56
57
//! Music CLI arguments
use clap::{Args, Subcommand};
/// Music API arguments
#[derive(Args)]
pub struct MusicArgs {
#[command(subcommand)]
pub command: MusicCommands,
}
#[derive(Subcommand)]
pub enum MusicCommands {
/// Generate music from text
Generate {
/// Text description of the music
#[arg(short, long)]
prompt: String,
/// Output file path
#[arg(short, long)]
output: Option<String>,
/// Duration in seconds (5-300)
#[arg(short, long)]
duration: Option<f32>,
/// Audio influence (0-1)
#[arg(long)]
influence: Option<f32>,
},
/// List generated music
List {
/// Page size
#[arg(short, long)]
limit: Option<u32>,
},
/// Get music details
Get {
/// Music ID
music_id: String,
},
/// Download music audio
Download {
/// Music ID
music_id: String,
/// Output file path
#[arg(short, long)]
output: Option<String>,
},
/// Delete music
Delete {
/// Music ID
music_id: String,
},
}