diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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; | |||
| 5 | use clap::{Parser, Subcommand}; | 5 | use clap::{Parser, Subcommand}; |
| 6 | 6 | ||
| 7 | mod cli_interactor; | 7 | mod cli_interactor; |
| 8 | mod client; | ||
| 8 | mod config; | 9 | mod config; |
| 9 | mod git; | 10 | mod git; |
| 10 | mod key_handling; | 11 | mod key_handling; |
| @@ -33,10 +34,11 @@ enum Commands { | |||
| 33 | Prs(sub_commands::prs::SubCommandArgs), | 34 | Prs(sub_commands::prs::SubCommandArgs), |
| 34 | } | 35 | } |
| 35 | 36 | ||
| 36 | fn main() -> Result<()> { | 37 | #[tokio::main] |
| 38 | async fn main() -> Result<()> { | ||
| 37 | let cli = Cli::parse(); | 39 | let cli = Cli::parse(); |
| 38 | match &cli.command { | 40 | match &cli.command { |
| 39 | Commands::Login(args) => sub_commands::login::launch(&cli, args), | 41 | Commands::Login(args) => sub_commands::login::launch(&cli, args), |
| 40 | Commands::Prs(args) => sub_commands::prs::launch(&cli, args), | 42 | Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), |
| 41 | } | 43 | } |
| 42 | } | 44 | } |