cod_cli/issue/
view.rs

1use clap::Parser;
2use cod_types::api::state_type::StateType;
3
4/// View details of selected issue
5#[derive(Parser, Debug)]
6pub struct ViewIssueArgs {
7    /// Select from issues with the chosen state
8    #[arg(short, long, value_enum, default_value_t = StateType::All)]
9    pub state: StateType,
10
11    /// Disabled: display issue summary | Enabled: display issue commen history
12    #[arg(short, long)]
13    pub comments: bool,
14}