version 2 release!

This commit is contained in:
breadone 2024-07-28 18:23:56 +12:00
parent bfdd939fc1
commit 07fce376c8
No known key found for this signature in database
2 changed files with 9 additions and 5 deletions

View File

@ -159,11 +159,15 @@ async fn init_repo(name: &Option<String>, 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<String>, session: &Session) {

View File

@ -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 {