ockam_command 0.104.0

End-to-end encryption and mutual authentication for distributed applications.
Documentation
use clap::{Args, Subcommand};

use crate::util::api::CloudOpts;
use crate::{docs, CommandGlobalOpts};

mod subscription;

const HELP_DETAIL: &str = "";

#[derive(Clone, Debug, Args)]
#[command(hide = docs::hide(), after_long_help = docs::after_help(HELP_DETAIL))]
pub struct AdminCommand {
    #[command(subcommand)]
    pub subcommand: AdminSubCommand,

    #[command(flatten)]
    pub cloud_opts: CloudOpts,
}

#[derive(Clone, Debug, Subcommand)]
pub enum AdminSubCommand {
    #[command(display_order = 800)]
    Subscription(subscription::SubscriptionCommand),
}

impl AdminCommand {
    pub fn run(self, options: CommandGlobalOpts) {
        match self.subcommand {
            AdminSubCommand::Subscription(c) => c.run(options),
        }
    }
}