🐛 fix(rm_cli): rule removal save

- ensure the config is saved after removing a rule by id or label
This commit is contained in:
Jeremiah Russell
2025-10-08 17:34:18 +01:00
committed by Jeremiah Russell
parent 0dab9cc427
commit 7b196794b5

View File

@@ -19,10 +19,12 @@ impl RmCli {
if let Some(id) = self.id {
config.remove_rule_by_id(id)?;
config.save()?;
}
if let Some(label) = &self.label {
config.remove_rule_by_label(label)?;
config.save()?;
}
Ok(())