✨ feat(label): implement add label subcommand
- add `add` subcommand to the label cli - allow users to add labels to existing rules
This commit is contained in:
committed by
Jeremiah Russell
parent
06da00ac68
commit
0082b327f7
19
src/config_cli/label_cli/add_cli.rs
Normal file
19
src/config_cli/label_cli/add_cli.rs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
use clap::Parser;
|
||||||
|
|
||||||
|
use cull_gmail::{Config, Result};
|
||||||
|
|
||||||
|
#[derive(Debug, Parser)]
|
||||||
|
pub struct AddCli {
|
||||||
|
/// Id of the rule on which action applies
|
||||||
|
#[clap(short, long)]
|
||||||
|
id: usize,
|
||||||
|
/// Label to add to the rule
|
||||||
|
#[clap(short, long)]
|
||||||
|
label: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl AddCli {
|
||||||
|
pub fn run(&self, _config: Config) -> Result<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user