♻️ refactor(cli): use client instance for message subcommand
- use client instance for message subcommand to avoid redundant credential file access
This commit is contained in:
committed by
Jeremiah Russell
parent
7eeebddf2e
commit
9bdb559104
@@ -80,7 +80,7 @@ async fn run(args: Cli) -> Result<()> {
|
||||
|
||||
match args.sub_command {
|
||||
SubCmds::Config(config_cli) => config_cli.run(config),
|
||||
SubCmds::Message(list_cli) => list_cli.run(config.credential_file()).await,
|
||||
SubCmds::Message(list_cli) => list_cli.run(&client).await,
|
||||
SubCmds::Labels(label_cli) => label_cli.run(client).await,
|
||||
SubCmds::Trash(trash_cli) => trash_cli.run(config.credential_file()).await,
|
||||
SubCmds::Delete(delete_cli) => delete_cli.run(&client).await,
|
||||
|
||||
Reference in New Issue
Block a user