diff options
Diffstat (limited to 'nostr_git_remote_helper/src/sub_commands')
| -rw-r--r-- | nostr_git_remote_helper/src/sub_commands/capabilities.rs | 8 | ||||
| -rw-r--r-- | nostr_git_remote_helper/src/sub_commands/mod.rs | 1 |
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 @@ | |||
| 1 | use anyhow::Result; | ||
| 2 | |||
| 3 | // https://git-scm.com/docs/gitremote-helpers#_capabilities | ||
| 4 | pub 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 @@ | |||
| 1 | pub mod capabilities; | ||
| 1 | pub mod placeholder; | 2 | pub mod placeholder; |