upleb.uk

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

summaryrefslogtreecommitdiff
path: root/nostr_git_remote_helper/src/sub_commands
diff options
context:
space:
mode:
Diffstat (limited to 'nostr_git_remote_helper/src/sub_commands')
-rw-r--r--nostr_git_remote_helper/src/sub_commands/capabilities.rs8
-rw-r--r--nostr_git_remote_helper/src/sub_commands/mod.rs1
2 files changed, 9 insertions, 0 deletions
diff --git a/nostr_git_remote_helper/src/sub_commands/capabilities.rs b/nostr_git_remote_helper/src/sub_commands/capabilities.rs
new file mode 100644
index 0000000..325cb3b
--- /dev/null
+++ b/nostr_git_remote_helper/src/sub_commands/capabilities.rs
@@ -0,0 +1,8 @@
1use anyhow::Result;
2
3// https://git-scm.com/docs/gitremote-helpers#_capabilities
4pub async fn launch() -> Result<()> {
5 // blank line indicates end of capabilities
6 println("");
7 Ok(())
8}
diff --git a/nostr_git_remote_helper/src/sub_commands/mod.rs b/nostr_git_remote_helper/src/sub_commands/mod.rs
index b12a94a..c60ab7a 100644
--- a/nostr_git_remote_helper/src/sub_commands/mod.rs
+++ b/nostr_git_remote_helper/src/sub_commands/mod.rs
@@ -1 +1,2 @@
1pub mod capabilities;
1pub mod placeholder; 2pub mod placeholder;