feat(cli): add label command-line interface

- implement `LabelCli` struct with `run` method for fetching Gmail labels
- integrate `clap` for command-line argument parsing
This commit is contained in:
Jeremiah Russell
2025-10-03 17:36:28 +01:00
committed by Jeremiah Russell
parent 88e82f21c9
commit 8518242302

12
src/label_cli.rs Normal file
View File

@@ -0,0 +1,12 @@
use clap::Parser;
use cull_gmail::{Error, Labels};
#[derive(Debug, Parser)]
pub struct LabelCli {}
impl LabelCli {
pub async fn run(&self, credential_file: &str) -> Result<(), Error> {
let _ = Labels::new(credential_file, true).await?;
Ok(())
}
}