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