✨ feat(label_cli): implement label listing subcommand
- add `list` subcommand to `label` subcommand - implement `run` function for `ListCli` to handle listing labels
This commit is contained in:
committed by
Jeremiah Russell
parent
0082b327f7
commit
362ad93adf
16
src/config_cli/label_cli/list_cli.rs
Normal file
16
src/config_cli/label_cli/list_cli.rs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
use clap::Parser;
|
||||||
|
|
||||||
|
use cull_gmail::{Config, Result};
|
||||||
|
|
||||||
|
#[derive(Debug, Parser)]
|
||||||
|
pub struct ListCli {
|
||||||
|
/// Id of the rule on which action applies
|
||||||
|
#[clap(short, long)]
|
||||||
|
id: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ListCli {
|
||||||
|
pub fn run(&self, _config: Config) -> Result<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user