From 4592daa1cc131de457c394fc7c839a6944005b49 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sun, 12 Oct 2025 07:25:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(cli):=20add=20execute=20option?= =?UTF-8?q?=20to=20processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - allow users to skip execution of actions with a new `execute` option --- src/cli/run_cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/run_cli.rs b/src/cli/run_cli.rs index 482cd21..01cc7bd 100644 --- a/src/cli/run_cli.rs +++ b/src/cli/run_cli.rs @@ -26,7 +26,8 @@ impl RunCli { log::info!("Executing rule `#{}` for label `{label}`", rule.describe()); - let processor = Processor::new(config.credential_file(), rule); + let mut builder = Processor::builder(config.credential_file(), rule); + let processor = builder.set_execute(self.execute).build(); let Some(action) = processor.action() else { log::warn!("no valid action specified for rule #{}", rule.id());