feat(cli): add skip action flags to cli

- add flags `--skip-trash` and `--skip-delete` to skip trash and delete actions
- add display order and help heading for better cli usage
This commit is contained in:
Jeremiah Russell
2025-10-11 08:12:29 +01:00
committed by Jeremiah Russell
parent edcc1bbe45
commit 6eb86c5d36

View File

@@ -4,10 +4,10 @@ use cull_gmail::{Config, EolAction, Processor, Result};
#[derive(Debug, Parser)]
pub struct RunCli {
/// Skip any rules that apply the action `trash`
#[clap(short = 't', long)]
#[clap(short = 't', long, display_order = 1, help_heading = "Skip Action")]
skip_trash: bool,
/// Skip any rules that apply the action `delete`
#[clap(short = 'd', long)]
#[clap(short = 'd', long, display_order = 2, help_heading = "Skip Action")]
skip_delete: bool,
}