upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-02-14 08:41:02 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-02-14 08:47:27 +0000
commitc0847f928c32adb0b4dfc3b73ee77fa3cdb5ec21 (patch)
tree07d89b9a5cb6770b25c22d35a13579df1278db0b /src/main.rs
parent1022344a0529b5f6b50f35d3030a528a1a5c6f91 (diff)
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
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 6 insertions, 3 deletions
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 {
36 Login(sub_commands::login::SubCommandArgs), 36 Login(sub_commands::login::SubCommandArgs),
37 /// issue repository reference event as a maintainers 37 /// issue repository reference event as a maintainers
38 Claim(sub_commands::claim::SubCommandArgs), 38 Claim(sub_commands::claim::SubCommandArgs),
39 /// create and issue prs 39 /// send a PR / patch / patch set via nostr events
40 Prs(sub_commands::prs::SubCommandArgs), 40 Send(sub_commands::send::SubCommandArgs),
41 /// list open PRs / patches / patch sets and pull / apply them a branch
42 List(sub_commands::list::SubCommandArgs),
41 /// pull latest commits in pr linked to checked out branch 43 /// pull latest commits in pr linked to checked out branch
42 Pull, 44 Pull,
43 /// push commits to current checked out pr branch 45 /// push commits to current checked out pr branch
@@ -50,7 +52,8 @@ async fn main() -> Result<()> {
50 match &cli.command { 52 match &cli.command {
51 Commands::Login(args) => sub_commands::login::launch(&cli, args).await, 53 Commands::Login(args) => sub_commands::login::launch(&cli, args).await,
52 Commands::Claim(args) => sub_commands::claim::launch(&cli, args).await, 54 Commands::Claim(args) => sub_commands::claim::launch(&cli, args).await,
53 Commands::Prs(args) => sub_commands::prs::launch(&cli, args).await, 55 Commands::Send(args) => sub_commands::send::launch(&cli, args).await,
56 Commands::List(args) => sub_commands::list::launch(&cli, args).await,
54 Commands::Pull => sub_commands::pull::launch().await, 57 Commands::Pull => sub_commands::pull::launch().await,
55 Commands::Push => sub_commands::push::launch(&cli).await, 58 Commands::Push => sub_commands::push::launch(&cli).await,
56 } 59 }