use clap::{Parser, Subcommand};
use openstack_sdk::AsyncOpenStack;
use crate::{Cli, OpenStackCliError};
pub mod list;
#[derive(Parser)]
pub struct AllocationCommand {
#[command(subcommand)]
command: AllocationCommands,
}
#[allow(missing_docs)]
#[derive(Subcommand)]
pub enum AllocationCommands {
List(list::AllocationCommand),
}
impl AllocationCommand {
pub async fn take_action(
&self,
parsed_args: &Cli,
session: &mut AsyncOpenStack,
) -> Result<(), OpenStackCliError> {
match &self.command {
AllocationCommands::List(cmd) => cmd.take_action(parsed_args, session).await,
}
}
}