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/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 85b2812..539d9ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,10 @@ enum Commands { Login(sub_commands::login::SubCommandArgs), /// issue repository reference event as a maintainers Claim(sub_commands::claim::SubCommandArgs), - /// create and issue prs - Prs(sub_commands::prs::SubCommandArgs), + /// send a PR / patch / patch set via nostr events + Send(sub_commands::send::SubCommandArgs), + /// list open PRs / patches / patch sets and pull / apply them a branch + List(sub_commands::list::SubCommandArgs), /// pull latest commits in pr linked to checked out branch Pull, /// push commits to current checked out pr branch @@ -50,7 +52,8 @@ async fn main() -> Result<()> { match &cli.command { Commands::Login(args) => sub_commands::login::launch(&cli, args).await, Commands::Claim(args) => sub_commands::claim::launch(&cli, args).await, - Commands::Prs(args) => sub_commands::prs::launch(&cli, args).await, + Commands::Send(args) => sub_commands::send::launch(&cli, args).await, + Commands::List(args) => sub_commands::list::launch(&cli, args).await, Commands::Pull => sub_commands::pull::launch().await, Commands::Push => sub_commands::push::launch(&cli).await, } -- cgit v1.2.3