//! Profile CLI commands
use crate::gmail::GmailClient;
use crate::output::{OutputFormat, print_output};
use anyhow::Result;
use clap::Args;
#[derive(Args, Debug)]
pub struct ProfileArgs {
/// Output format
#[arg(short, long, value_enum, default_value = "json")]
pub format: OutputFormat,
}
pub async fn handle_profile_cmd(client: &GmailClient, args: ProfileArgs) -> Result<()> {
let profile = client.get_profile().await?;
print_output(&profile, args.format)?;
Ok(())
}