From 89dd35d487bc1e2623b10fdb30ddec93f29c45e0 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sun, 12 Oct 2025 07:04:38 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(cli):=20add=20execute=20flag?= =?UTF-8?q?=20to=20run=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - introduce execute flag to control action execution - add skip_trash flag to skip rules with trash action - add skip_delete flag to skip rules with delete action --- src/cli/run_cli.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/run_cli.rs b/src/cli/run_cli.rs index 2105301..482cd21 100644 --- a/src/cli/run_cli.rs +++ b/src/cli/run_cli.rs @@ -3,11 +3,14 @@ use cull_gmail::{Config, EolAction, Processor, Result}; #[derive(Debug, Parser)] pub struct RunCli { + /// Execute the action + #[clap(short, long, display_order = 1, help_heading = "Action")] + execute: bool, /// Skip any rules that apply the action `trash` - #[clap(short = 't', long, display_order = 1, help_heading = "Skip Action")] + #[clap(short = 't', long, display_order = 2, help_heading = "Skip Action")] skip_trash: bool, /// Skip any rules that apply the action `delete` - #[clap(short = 'd', long, display_order = 2, help_heading = "Skip Action")] + #[clap(short = 'd', long, display_order = 3, help_heading = "Skip Action")] skip_delete: bool, }