feat(config): add function to list rules

- implement list_rules function in Config struct
- iterate through rules and print each rule
This commit is contained in:
Jeremiah Russell
2025-10-08 06:16:33 +01:00
committed by Jeremiah Russell
parent 33027a6c34
commit 6ef1a337a2

View File

@@ -97,4 +97,11 @@ impl Config {
""
}
}
/// List the end of life rules set in the configuration
pub fn list_rules(&self) {
for rule in &self.rules {
println!("{rule}");
}
}
}