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
#[allow(clippy::wildcard_imports)]
use super::*;
/// The `tix roadmap` subcommands (mission `roadmap-initiatives-01M3C8SX`, WP04).
///
/// Read-only. `list` applies the one normalized [`crate::roadmap::filter::RoadmapFilter`];
/// `show` prints the single-row detail in the same rendering.
#[derive(Subcommand)]
pub enum RoadmapCommand {
/// List initiatives in roadmap order: target date ascending, then stable id
///
/// An undated initiative sorts after every dated one and renders the explicit
/// `undated` state — never a blank or an invented date. A bounded period filter
/// excludes it, because inventing a period is exactly what the contract forbids.
List {
/// Inclusive lower bound on the target date (`YYYY-MM-DD`)
#[arg(long, value_name = "DATE")]
from: Option<String>,
/// Inclusive upper bound on the target date (`YYYY-MM-DD`)
#[arg(long, value_name = "DATE")]
to: Option<String>,
/// Owner to match, compared trimmed and case-insensitively
#[arg(long, value_name = "ID")]
owner: Option<String>,
/// Initiative status to match, compared trimmed and case-insensitively
#[arg(long, value_name = "STATE")]
status: Option<String>,
/// A label the initiative must carry; repeat for an AND over labels
#[arg(long = "label", value_name = "LABEL")]
labels: Vec<String>,
/// Free text matched case-insensitively against the searchable fields
#[arg(long, value_name = "TEXT")]
query: Option<String>,
},
/// Show one initiative's roadmap row: summary contributions and diagnostics
Show {
/// Initiative id (a name is accepted as a convenience)
#[arg(value_name = "ID")]
reference: String,
},
}