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
use clap::Subcommand;
#[derive(Subcommand)]
#[expect(
clippy::large_enum_variant,
reason = "only constructed once from CLI args"
)]
pub enum TemplateAction {
/// Save a named bug template
Save {
/// Template name
name: String,
/// Default product
#[arg(long)]
product: Option<String>,
/// Default component
#[arg(long)]
component: Option<String>,
/// Default version
#[arg(long)]
version: Option<String>,
/// Default priority
#[arg(long)]
priority: Option<String>,
/// Default severity
#[arg(long)]
severity: Option<String>,
/// Default assignee
#[arg(long)]
assignee: Option<String>,
/// Default operating system
#[arg(long)]
op_sys: Option<String>,
/// Default hardware platform
#[arg(long)]
rep_platform: Option<String>,
/// Default description
#[arg(long)]
description: Option<String>,
},
/// List all saved templates
List,
/// Show details of a template
Show {
/// Template name
name: String,
},
/// Delete a template
Delete {
/// Template name
name: String,
},
}