diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index 996b697..85b2812 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -48,14 +48,10 @@ enum Commands { | |||
| 48 | async fn main() -> Result<()> { | 48 | async fn main() -> Result<()> { |
| 49 | let cli = Cli::parse(); | 49 | let cli = Cli::parse(); |
| 50 | match &cli.command { | 50 | match &cli.command { |
| 51 | Commands::Login(args) => { | 51 | Commands::Login(args) => sub_commands::login::launch(&cli, args).await, |
| 52 | futures::executor::block_on(sub_commands::login::launch(&cli, args)) | 52 | Commands::Claim(args) => sub_commands::claim::launch(&cli, args).await, |
| 53 | } | 53 | Commands::Prs(args) => sub_commands::prs::launch(&cli, args).await, |
| 54 | Commands::Claim(args) => { | 54 | Commands::Pull => sub_commands::pull::launch().await, |
| 55 | futures::executor::block_on(sub_commands::claim::launch(&cli, args)) | 55 | Commands::Push => sub_commands::push::launch(&cli).await, |
| 56 | } | ||
| 57 | Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), | ||
| 58 | Commands::Pull => futures::executor::block_on(sub_commands::pull::launch()), | ||
| 59 | Commands::Push => futures::executor::block_on(sub_commands::push::launch(&cli)), | ||
| 60 | } | 56 | } |
| 61 | } | 57 | } |