diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index e833e4a..0000000 --- a/src/main.rs +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #![cfg_attr(not(test), warn(clippy::pedantic))] | ||
| 2 | #![allow(clippy::large_futures)] | ||
| 3 | #![cfg_attr(not(test), warn(clippy::expect_used))] | ||
| 4 | |||
| 5 | use anyhow::Result; | ||
| 6 | use clap::Parser; | ||
| 7 | use cli::{Cli, Commands}; | ||
| 8 | |||
| 9 | mod cli; | ||
| 10 | mod cli_interactor; | ||
| 11 | mod client; | ||
| 12 | mod config; | ||
| 13 | mod git; | ||
| 14 | mod key_handling; | ||
| 15 | mod login; | ||
| 16 | mod repo_ref; | ||
| 17 | mod repo_state; | ||
| 18 | mod sub_commands; | ||
| 19 | |||
| 20 | #[tokio::main] | ||
| 21 | async fn main() -> Result<()> { | ||
| 22 | let cli = Cli::parse(); | ||
| 23 | match &cli.command { | ||
| 24 | Commands::Fetch(args) => sub_commands::fetch::launch(&cli, args).await, | ||
| 25 | Commands::Login(args) => sub_commands::login::launch(&cli, args).await, | ||
| 26 | Commands::Init(args) => sub_commands::init::launch(&cli, args).await, | ||
| 27 | Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await, | ||
| 28 | Commands::List => sub_commands::list::launch().await, | ||
| 29 | Commands::Pull => sub_commands::pull::launch().await, | ||
| 30 | Commands::Push(args) => sub_commands::push::launch(&cli, args).await, | ||
| 31 | } | ||
| 32 | } | ||