cod_cli/issue/
create.rs

1use clap::Parser;
2
3/// Create an issue
4#[derive(Parser, Debug)]
5pub struct CreateIssueArgs {
6    /// Title or summary
7    #[arg(short, long)]
8    pub title: Option<String>,
9
10    /// Comma-delimited list of label ids
11    #[arg(short, long, value_name = "LABEL,...", value_delimiter = ',')]
12    pub labels: Option<Vec<String>>,
13
14    /// Main description of issue
15    #[arg(id = "description", short, long)]
16    pub body: Option<String>,
17
18    /// Comma-delimited list of assignee names
19    #[arg(short, long, value_name = "ASSIGNEE,...", value_delimiter = ',')]
20    pub assignees: Option<Vec<String>>,
21
22    /// Name of the milestone the issue is related to
23    #[arg(short, long)]
24    pub milestone: Option<String>,
25}