diff --git a/src/git.rs b/src/git.rs index c984c0a..0403685 100644 --- a/src/git.rs +++ b/src/git.rs @@ -159,11 +159,15 @@ async fn init_repo(name: &Option, session: &Session) { let add_repo = Confirm::new("Would you like to add the remote to the repo in this directory?").prompt(); - match add_repo { - Ok(true) => add_remote_to_repo(unwrapped_name), - Ok(false) => {}, - Err(e) => panic!("{e}") + if add_repo.is_ok_and(|choice| choice) { + add_remote_to_repo(&Some(unwrapped_name), session).await } + + // match add_repo { + // Ok(true) => add_remote_to_repo(&Some(unwrapped_name), session).await, + // Ok(false) => { return 0; }, + // Err(e) => panic!("{e}") + // } } async fn clone_repo(name: &Option, session: &Session) { diff --git a/src/main.rs b/src/main.rs index 096223d..467fb80 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use tokio; use clap::{Parser, Subcommand}; use crate::git::{handle_git, GitCommand}; -const VERSION: &str = "2.0b5"; +const VERSION: &str = "2.0"; #[derive(Subcommand)] enum Command {