From 9ba3dc08e60906cef6c82a375d3c427d2b2f4733 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 2 Jul 2024 07:46:28 +0100 Subject: refactor: remove old remote helper placeholder to make room for new one --- nostr_git_remote_helper/src/main.rs | 39 ------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 nostr_git_remote_helper/src/main.rs (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 deleted file mode 100644 index 849396c..0000000 --- a/nostr_git_remote_helper/src/main.rs +++ /dev/null @@ -1,39 +0,0 @@ -#![cfg_attr(not(test), warn(clippy::pedantic))] -#![cfg_attr(not(test), warn(clippy::expect_used))] - -use anyhow::Result; -use clap::{Parser, Subcommand}; - -mod sub_commands; - -#[derive(Parser)] -#[command(author, version, about, long_about = None)] -#[command(propagate_version = true)] -pub struct Cli { - #[command(subcommand)] - command: Commands, -} - -#[derive(Subcommand)] -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) => { - sub_commands::placeholder::launch(&cli, args).await - } - } -} -- cgit v1.2.3