feat(config): add eol query function

- add `eol_query` function to `EolRule` struct
- function returns a string with the current date formatted as "YYYY-MM-DD"
This commit is contained in:
Jeremiah Russell
2025-10-10 14:43:16 +01:00
committed by Jeremiah Russell
parent 749616d5ff
commit 66edab897f

View File

@@ -132,6 +132,10 @@ impl EolRule {
self.id,
)
}
pub(crate) fn eol_query(&self) -> String {
format!("before: {}", chrono::Local::now().format("%Y-%m-%d"))
}
}
#[cfg(test)]