starting phase 5; clap cli

This commit is contained in:
2026-08-17 18:02:47 +01:00
parent 338e6c830a
commit 06886a2286
7 changed files with 252 additions and 5 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ fn is_sentinel(v: f64) -> bool {
.any(|s| v.total_cmp(s) == std::cmp::Ordering::Equal)
}
pub async fn fetch_metadata(client: &Client, url: &str) -> Result<LookupMap> {
pub async fn fetch_metadata(client: &Client, url: &str) -> Result<(LookupMap, MetadataResponse)> {
info!("Fetching metadata from {}", url);
let resp = client
@@ -63,7 +63,7 @@ pub async fn fetch_metadata(client: &Client, url: &str) -> Result<LookupMap> {
lookup_map.insert(var.code.clone(), lookup);
}
Ok(lookup_map)
Ok((lookup_map, meta))
}
pub fn extract_available_months(meta: &MetadataResponse) -> Vec<String> {