From 57ddb8da9021e16863e2a832ac277d0faf0ee805 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 3 Oct 2025 22:40:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(cli):=20rename=20?= =?UTF-8?q?list=20subcommand=20to=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rename list_cli module to message_cli - rename ListCli struct to MessageCli - update the command name from list to message --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 40a8f3f..ebda9c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,11 @@ use clap::{Parser, Subcommand}; mod label_cli; -mod list_cli; +mod message_cli; use cull_gmail::Error; use label_cli::LabelCli; -use list_cli::ListCli; +use message_cli::MessageCli; use std::error::Error as stdError; #[derive(Parser, Debug)] @@ -20,8 +20,8 @@ struct Cli { #[derive(Subcommand, Debug)] enum Commands { /// List messages - #[clap(name = "list")] - List(ListCli), + #[clap(name = "message")] + Message(MessageCli), /// List labels #[clap(name = "label")] Labels(LabelCli), @@ -53,7 +53,7 @@ async fn main() { async fn run(args: Cli) -> Result<(), Error> { if let Some(cmds) = args.command { match cmds { - Commands::List(list_cli) => list_cli.run("credential.json").await?, + Commands::Message(list_cli) => list_cli.run("credential.json").await?, Commands::Labels(label_cli) => label_cli.run("credential.json").await?, } }