codeberg_cli/actions/config/
mod.rs

1pub mod generate;
2pub mod info;
3
4use clap::Subcommand;
5
6use super::GeneralArgs;
7
8/// Config subcommands
9#[derive(Subcommand, Debug)]
10pub enum ConfigArgs {
11    Info(info::ConfigInfoArgs),
12    Generate(generate::ConfigGenerateArgs),
13}
14
15impl ConfigArgs {
16    pub async fn run(self, general_args: GeneralArgs) -> anyhow::Result<()> {
17        match self {
18            ConfigArgs::Info(args) => args.run(general_args),
19            ConfigArgs::Generate(args) => args.run(general_args),
20        }
21    }
22}