mecha10-cli 0.7.0

Mecha10 CLI tool
Documentation
//! Auth command arguments
//!
//! Authentication commands for login, logout, and checking auth status.

use clap::{Args, Subcommand};

#[derive(Subcommand)]
pub enum AuthCommand {
    Login(#[command(flatten)] LoginArgs),

    Logout,

    Whoami(#[command(flatten)] WhoamiArgs),
}

#[derive(Args)]
pub struct LoginArgs {
    #[arg(long)]
    pub auth_url: Option<String>,
}

#[derive(Args)]
pub struct WhoamiArgs {
    #[arg(short, long)]
    pub verbose: bool,
}