changed git delete to git rm

This commit is contained in:
breadone 2024-07-30 11:43:29 +12:00
parent f0f02a2b60
commit 11374bf8f6
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -100,7 +100,7 @@ checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
[[package]] [[package]]
name = "bp" name = "bp"
version = "2.1.0" version = "2.2.0"
dependencies = [ dependencies = [
"clap", "clap",
"inquire", "inquire",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "bp" name = "bp"
version = "2.1.0" version = "2.2.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -17,7 +17,7 @@ pub enum GitCommand {
Ls, Ls,
/// Delete the specified repository in breadpi. /// Delete the specified repository in breadpi.
Delete { Rm {
#[arg()] #[arg()]
/// Name of the repo /// Name of the repo
name: Option<String> name: Option<String>
@ -46,7 +46,7 @@ pub async fn handle_git(cmd: &GitCommand) {
match cmd { match cmd {
GitCommand::Init { name } => { init_repo(name, &session).await; } 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; } GitCommand::Add { name } => { add_remote_to_repo(name, &session).await; }