cod_cli/pull_request/view.rs
1use clap::Parser;
2use cod_types::api::state_type::StateType;
3
4#[derive(Parser, Debug)]
5#[command(about = "View details of a selected pull request")]
6pub struct ViewPullRequestsArgs {
7 /// Select from pull requests with the chosen state
8 #[arg(
9 short,
10 long,
11 value_enum,
12 default_value_t = StateType::All,
13 )]
14 pub state: StateType,
15
16 /// Disabled: display issue summary | Enabled: display issue comment history
17 #[arg(short, long)]
18 pub comments: bool,
19}