From 362ad93adfc8ecdf5383eaba248e666a19cfb7d7 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 9 Oct 2025 07:12:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(label=5Fcli):=20implement=20la?= =?UTF-8?q?bel=20listing=20subcommand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add `list` subcommand to `label` subcommand - implement `run` function for `ListCli` to handle listing labels --- src/config_cli/label_cli/list_cli.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/config_cli/label_cli/list_cli.rs diff --git a/src/config_cli/label_cli/list_cli.rs b/src/config_cli/label_cli/list_cli.rs new file mode 100644 index 0000000..bcd273e --- /dev/null +++ b/src/config_cli/label_cli/list_cli.rs @@ -0,0 +1,16 @@ +use clap::Parser; + +use cull_gmail::{Config, Result}; + +#[derive(Debug, Parser)] +pub struct ListCli { + /// Id of the rule on which action applies + #[clap(short, long)] + id: usize, +} + +impl ListCli { + pub fn run(&self, _config: Config) -> Result<()> { + Ok(()) + } +}