Resolution days now better correspond to the meaning

This commit is contained in:
2025-01-08 16:25:55 +01:00
parent 1628a4b238
commit 34f40b3602
3 changed files with 7 additions and 5 deletions

View File

@@ -47,8 +47,10 @@ pub enum SortBy {
#[derive(Debug, Clone, Copy, ValueEnum)]
pub enum Resolution {
TODAY,
#[clap(name = "hist-90-days")]
HistDays90,
HistDay,
#[clap(name = "hist-all-days")]
HistDaysAll,
}
impl Resolution {
@@ -56,7 +58,7 @@ impl Resolution {
match self {
Resolution::TODAY => ecb_url::TODAY,
Resolution::HistDays90 => ecb_url::hist::DAYS_90,
Resolution::HistDay => ecb_url::hist::DAILY,
Resolution::HistDaysAll => ecb_url::hist::DAYS_ALL,
}
}
}