From 492cc67887855cecb3fb501c4b61af50bf645b73 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 1 Dec 2023 00:00:00 +0000 Subject: feat(helper) add capabilities cmd as specified in https://git-scm.com/docs/gitremote-helpers --- nostr_git_remote_helper/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nostr_git_remote_helper/src/main.rs') 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 { enum Commands { /// replace with an actual subcommand Placeholder(sub_commands::placeholder::SubCommandArgs), + Capabilities(), + // list + // - get git list from remote git server + // - suppliment list with open prs and send back + // - get prs + // - get commits against pr + // - find most recent commit against pr } #[tokio::main] async fn main() -> Result<()> { let cli = Cli::parse(); match &cli.command { + Commands::Capabilities() => sub_commands::capabilities::launch(), Commands::Placeholder(args) => { futures::executor::block_on(sub_commands::placeholder::launch(&cli, args)) } -- cgit v1.2.3