✨ 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:
committed by
Jeremiah Russell
parent
362ad93adf
commit
4ec18c2712
19
src/config_cli/label_cli/remove_cli.rs
Normal file
19
src/config_cli/label_cli/remove_cli.rs
Normal 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(())
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user