From c0847f928c32adb0b4dfc3b73ee77fa3cdb5ec21 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 14 Feb 2024 08:41:02 +0000 Subject: feat!: move `prs create`>`send`, `prs list`>`list` remove unnecessary hierachy of `prs` which is also a troublesome term replace the concept of `create` which aligns more to the PR github model to `send` which aligns more with the git patch model --- src/sub_commands/prs/mod.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/sub_commands/prs/mod.rs (limited to 'src/sub_commands/prs/mod.rs') diff --git a/src/sub_commands/prs/mod.rs b/src/sub_commands/prs/mod.rs deleted file mode 100644 index a41c495..0000000 --- a/src/sub_commands/prs/mod.rs +++ /dev/null @@ -1,25 +0,0 @@ -use anyhow::Result; -use clap::Subcommand; - -use crate::Cli; -pub mod create; -pub mod list; - -#[derive(clap::Parser)] -pub struct SubCommandArgs { - #[command(subcommand)] - pub prs_command: Commands, -} - -#[derive(Debug, Subcommand)] -pub enum Commands { - Create(create::SubCommandArgs), - List(list::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, - Commands::List(args) => list::launch(cli_args, pr_args, args).await, - } -} -- cgit v1.2.3