From b9a88672b8734448615354e3f46748d2fdc2f647 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Sun, 1 Oct 2023 00:00:00 +0100 Subject: feat(prs-create) send commit to relay - add client - use client to send event - add async functionality - enabler for relay interaction whilst getting cli input --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5094c11..9c37aa7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,7 @@ use anyhow::Result; use clap::{Parser, Subcommand}; mod cli_interactor; +mod client; mod config; mod git; mod key_handling; @@ -33,10 +34,11 @@ enum Commands { Prs(sub_commands::prs::SubCommandArgs), } -fn main() -> Result<()> { +#[tokio::main] +async fn main() -> Result<()> { let cli = Cli::parse(); match &cli.command { Commands::Login(args) => sub_commands::login::launch(&cli, args), - Commands::Prs(args) => sub_commands::prs::launch(&cli, args), + Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), } } -- cgit v1.2.3