feat(label_cli): implement remove label subcommand

- add `remove` subcommand to the label CLI
- allow users to remove a label from a specific rule by ID
This commit is contained in:
Jeremiah Russell
2025-10-09 07:13:05 +01:00
committed by Jeremiah Russell
parent 362ad93adf
commit 4ec18c2712

View File

@@ -0,0 +1,19 @@
use clap::Parser;
use cull_gmail::{Config, Result};
#[derive(Debug, Parser)]
pub struct RemoveCli {
/// Id of the rule on which action applies
#[clap(short, long)]
id: usize,
/// Label to remove from the rule
#[clap(short, long)]
label: String,
}
impl RemoveCli {
pub fn run(&self, _config: Config) -> Result<()> {
Ok(())
}
}