♻️ refactor(cli): remove unused credential file

- remove credential file parameters
- use GmailClient instance instead
This commit is contained in:
Jeremiah Russell
2025-10-13 12:48:52 +01:00
committed by Jeremiah Russell
parent 455deb8420
commit 4ba9d672a6

View File

@@ -1,12 +1,12 @@
use clap::Parser;
use cull_gmail::{Error, Labels};
use cull_gmail::{Error, GmailClient};
#[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?;
pub async fn run(&self, client: GmailClient) -> Result<(), Error> {
client.show_label();
Ok(())
}
}