From 11374bf8f63b89fe313aab1572d373105b81e86b Mon Sep 17 00:00:00 2001 From: breadone Date: Tue, 30 Jul 2024 11:43:29 +1200 Subject: [PATCH] changed git delete to git rm --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/git.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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; }