version 2 release!
This commit is contained in:
parent
bfdd939fc1
commit
07fce376c8
12
src/git.rs
12
src/git.rs
@ -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();
|
let add_repo = Confirm::new("Would you like to add the remote to the repo in this directory?").prompt();
|
||||||
|
|
||||||
match add_repo {
|
if add_repo.is_ok_and(|choice| choice) {
|
||||||
Ok(true) => add_remote_to_repo(unwrapped_name),
|
add_remote_to_repo(&Some(unwrapped_name), session).await
|
||||||
Ok(false) => {},
|
|
||||||
Err(e) => panic!("{e}")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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) {
|
async fn clone_repo(name: &Option<String>, session: &Session) {
|
||||||
|
@ -4,7 +4,7 @@ use tokio;
|
|||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use crate::git::{handle_git, GitCommand};
|
use crate::git::{handle_git, GitCommand};
|
||||||
|
|
||||||
const VERSION: &str = "2.0b5";
|
const VERSION: &str = "2.0";
|
||||||
|
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
enum Command {
|
enum Command {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user