diff --git a/Cargo.lock b/Cargo.lock index 39aea0d..3f753e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -100,7 +100,7 @@ checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "bp" -version = "2.1.0" +version = "2.2.0" dependencies = [ "clap", "inquire", diff --git a/Cargo.toml b/Cargo.toml index 3627630..252b84f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bp" -version = "2.1.0" +version = "2.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/git.rs b/src/git.rs index 1ea4191..bdea927 100644 --- a/src/git.rs +++ b/src/git.rs @@ -17,7 +17,7 @@ pub enum GitCommand { Ls, /// Delete the specified repository in breadpi. - Delete { + Rm { #[arg()] /// Name of the repo name: Option @@ -46,7 +46,7 @@ pub async fn handle_git(cmd: &GitCommand) { match cmd { GitCommand::Init { name } => { init_repo(name, &session).await; } - GitCommand::Delete { name } => { rm_repo(name, &session).await; } + GitCommand::Rm { name } => { rm_repo(name, &session).await; } GitCommand::Add { name } => { add_remote_to_repo(name, &session).await; }