upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/prs/mod.rs
blob: 982e8660961d751971fe6edc00b739be3fc4f0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use anyhow::Result;
use clap::Subcommand;

use crate::Cli;
pub mod create;

#[derive(clap::Parser)]
pub struct SubCommandArgs {
    #[command(subcommand)]
    pub prs_command: Commands,
}

#[derive(Debug, Subcommand)]
pub enum Commands {
    Create(create::SubCommandArgs),
}

pub async fn launch(cli_args: &Cli, pr_args: &SubCommandArgs) -> Result<()> {
    match &pr_args.prs_command {
        Commands::Create(args) => create::launch(cli_args, pr_args, args).await,
    }
}