✨ feat(cli): add execute option to processor
- allow users to skip execution of actions with a new `execute` option
This commit is contained in:
committed by
Jeremiah Russell
parent
f5c929d1a5
commit
4592daa1cc
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user