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.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/nostr_git_remote_helper/src/main.rs b/nostr_git_remote_helper/src/main.rs
new file mode 100644
index 0000000..05e3fab
--- /dev/null
+++ b/nostr_git_remote_helper/src/main.rs
@@ -0,0 +1,31 @@
1#![cfg_attr(not(test), warn(clippy::pedantic))]
2#![cfg_attr(not(test), warn(clippy::expect_used))]
3
4use anyhow::Result;
5use clap::{Parser, Subcommand};
6
7mod sub_commands;
8
9#[derive(Parser)]
10#[command(author, version, about, long_about = None)]
11#[command(propagate_version = true)]
12pub struct Cli {
13 #[command(subcommand)]
14 command: Commands,
15}
16
17#[derive(Subcommand)]
18enum Commands {
19 /// replace with an actual subcommand
20 Placeholder(sub_commands::placeholder::SubCommandArgs),
21}
22
23#[tokio::main]
24async fn main() -> Result<()> {
25 let cli = Cli::parse();
26 match &cli.command {
27 Commands::Placeholder(args) => {
28 futures::executor::block_on(sub_commands::placeholder::launch(&cli, args))
29 }
30 }
31}