codeberg_cli/actions/api/
mod.rs

1pub mod version;
2
3use clap::Subcommand;
4
5use super::GeneralArgs;
6
7/// API subcommands
8#[derive(Debug, Subcommand)]
9pub enum ApiArgs {
10    Version(version::ApiVersionArgs),
11}
12
13impl ApiArgs {
14    pub async fn run(self, general_args: GeneralArgs) -> anyhow::Result<()> {
15        match self {
16            ApiArgs::Version(args) => args.run(general_args).await,
17        }
18    }
19}