From 4ba9d672a6acbff7ef3750847619d57e49858e0f Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Mon, 13 Oct 2025 12:48:52 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(cli):=20remove=20?= =?UTF-8?q?unused=20credential=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove credential file parameters - use GmailClient instance instead --- src/cli/label_cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/label_cli.rs b/src/cli/label_cli.rs index 944a733..6680782 100644 --- a/src/cli/label_cli.rs +++ b/src/cli/label_cli.rs @@ -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(()) } }