From 6ef1a337a2633b4d4837dc2a16ab681aa7f9f345 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Wed, 8 Oct 2025 06:16:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(config):=20add=20function=20to?= =?UTF-8?q?=20list=20rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - implement list_rules function in Config struct - iterate through rules and print each rule --- src/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config.rs b/src/config.rs index 824cd29..9984578 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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}"); + } + } }