upleb.uk

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

summaryrefslogtreecommitdiff
path: root/nostr_git_remote_helper/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nostr_git_remote_helper/src/main.rs')
-rw-r--r--nostr_git_remote_helper/src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/nostr_git_remote_helper/src/main.rs b/nostr_git_remote_helper/src/main.rs
index 05e3fab..898f069 100644
--- a/nostr_git_remote_helper/src/main.rs
+++ b/nostr_git_remote_helper/src/main.rs
@@ -18,12 +18,20 @@ pub struct Cli {
18enum Commands { 18enum Commands {
19 /// replace with an actual subcommand 19 /// replace with an actual subcommand
20 Placeholder(sub_commands::placeholder::SubCommandArgs), 20 Placeholder(sub_commands::placeholder::SubCommandArgs),
21 Capabilities(),
22 // list
23 // - get git list from remote git server
24 // - suppliment list with open prs and send back
25 // - get prs
26 // - get commits against pr
27 // - find most recent commit against pr
21} 28}
22 29
23#[tokio::main] 30#[tokio::main]
24async fn main() -> Result<()> { 31async fn main() -> Result<()> {
25 let cli = Cli::parse(); 32 let cli = Cli::parse();
26 match &cli.command { 33 match &cli.command {
34 Commands::Capabilities() => sub_commands::capabilities::launch(),
27 Commands::Placeholder(args) => { 35 Commands::Placeholder(args) => {
28 futures::executor::block_on(sub_commands::placeholder::launch(&cli, args)) 36 futures::executor::block_on(sub_commands::placeholder::launch(&cli, args))
29 } 37 }