use anyhow::Result;
use clap::Subcommand;
use pimalaya_cli::printer::Printer;
use crate::account::context::Account;
use crate::jmap::{client::JmapClient, thread::get::JmapThreadGetCommand};
#[derive(Debug, Subcommand)]
pub enum JmapThreadCommand {
Get(JmapThreadGetCommand),
}
impl JmapThreadCommand {
pub fn execute(
self,
printer: &mut impl Printer,
account: &mut Account,
client: &mut JmapClient,
) -> Result<()> {
match self {
Self::Get(cmd) => cmd.execute(printer, account, client),
}
}
}