✨ feat(cli): add execute flag to run action
- 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
This commit is contained in:
committed by
Jeremiah Russell
parent
fea5c91dcb
commit
89dd35d487
@@ -3,11 +3,14 @@ use cull_gmail::{Config, EolAction, Processor, Result};
|
|||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
pub struct RunCli {
|
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`
|
/// 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_trash: bool,
|
||||||
/// Skip any rules that apply the action `delete`
|
/// 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,
|
skip_delete: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user