pub mod list;
use anyhow::Result;
use clap::Subcommand;
use pimalaya_cli::printer::Printer;
use crate::{
account::context::Account,
gmail::{client::GmailClient, history::list::GmailHistoryListCommand},
};
#[derive(Debug, Subcommand)]
#[command(rename_all = "kebab-case")]
pub enum GmailHistoryCommand {
List(GmailHistoryListCommand),
}
impl GmailHistoryCommand {
pub fn execute(
self,
printer: &mut impl Printer,
_account: &mut Account,
client: &mut GmailClient,
) -> Result<()> {
match self {
Self::List(cmd) => cmd.execute(printer, client),
}
}
}