feat(cli): add execute option to processor

- allow users to skip execution of actions with a new `execute` option
This commit is contained in:
Jeremiah Russell
2025-10-12 07:25:56 +01:00
committed by Jeremiah Russell
parent f5c929d1a5
commit 4592daa1cc

View File

@@ -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());