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
use clap::Subcommand;
#[derive(Subcommand)]
pub enum CommentAction {
/// List comments on a bug
List {
/// Bug ID
bug_id: u64,
/// Only show comments created after this date (ISO 8601)
#[arg(long)]
since: Option<String>,
},
/// Add a comment to a bug
Add {
/// Bug ID
bug_id: u64,
/// Comment text (opens $EDITOR if not provided)
#[arg(long)]
body: Option<String>,
},
/// Add or remove tags on a comment
Tag {
/// Comment ID
comment_id: u64,
/// Tags to add
#[arg(long)]
add: Vec<String>,
/// Tags to remove
#[arg(long)]
remove: Vec<String>,
},
/// Search comments by tag
SearchTags {
/// Tag query
query: String,
},
}