pub mod connect;
pub mod detect;
pub mod validate;
use anyhow::Result;
use clap::Subcommand;
#[derive(Debug, Subcommand)]
pub enum AuthCommand {
Detect(detect::DetectCommand),
Connect(connect::ConnectCommand),
Validate(validate::ValidateCommand),
}
impl AuthCommand {
#[allow(dead_code)]
pub async fn execute(self) -> Result<()> {
match self {
Self::Detect(cmd) => cmd.execute().await,
Self::Connect(cmd) => cmd.execute().await,
Self::Validate(cmd) => cmd.execute().await,
}
}
}