summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-06-24 21:52:37 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-06-24 21:52:37 +0200
commitda8802d1fb0c5707877777ff4187238195eef16b (patch)
tree60b6d9ca408d252c2f6e96b1c90a3993c3f0dc39 /src/lib.rs
parent20ff259800f3a5568c53fca3992c4e062282b82a (diff)
Added a command to delete a repo
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 45a7fd3..32d5770 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -46,6 +46,10 @@ pub fn run_command(user_input: &str) -> Result<ControlFlow<(), ()>, ShackleError
let init_result = git::init(&repo_name, &group, &description, &branch)?;
println!("Successfully created \"{}\"", init_result.path.display());
}
+ Ok(ShackleCommand::Delete(DeleteArgs { directory })) => {
+ git::delete(&directory)?;
+ println!("Successfully deleted \"{}\"", directory.display());
+ }
Ok(ShackleCommand::GitUploadPack(upload_pack_args)) => {
git::upload_pack(&upload_pack_args)?;
}