✨ 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:
committed by
Jeremiah Russell
parent
edcc1bbe45
commit
6eb86c5d36
@@ -4,10 +4,10 @@ use cull_gmail::{Config, EolAction, Processor, Result};
|
|||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
pub struct RunCli {
|
pub struct RunCli {
|
||||||
/// Skip any rules that apply the action `trash`
|
/// 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_trash: bool,
|
||||||
/// Skip any rules that apply the action `delete`
|
/// 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,
|
skip_delete: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user