use clap::Parser;
use cull_gmail::{GmailClient, Result, Rules};
use crate::run_rules;
#[derive(Debug, Parser)]
pub struct RunCli {
#[clap(short, long, display_order = 1, help_heading = "Action")]
execute: bool,
#[clap(short = 't', long, display_order = 2, help_heading = "Skip Action")]
skip_trash: bool,
#[clap(short = 'd', long, display_order = 3, help_heading = "Skip Action")]
skip_delete: bool,
}
impl RunCli {
pub async fn run(&self, client: &mut GmailClient, rules: Rules) -> Result<()> {
run_rules(client, rules, self.execute).await
}
}