use super::assignment::AzureRoleAssignmentArgs;
use super::definition::AzureRoleDefinitionArgs;
use clap::Subcommand;
use eyre::Result;
#[derive(Subcommand, Debug, Clone)]
#[expect(clippy::large_enum_variant)]
pub enum AzureRoleCommand {
Definition(AzureRoleDefinitionArgs),
Assignment(AzureRoleAssignmentArgs),
}
impl AzureRoleCommand {
pub async fn invoke(self) -> Result<()> {
match self {
AzureRoleCommand::Definition(args) => args.invoke().await,
AzureRoleCommand::Assignment(args) => args.invoke().await,
}
}
}