summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-29 15:55:43 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-29 15:55:43 +0200
commit601c08b20bfb806d78fe92d9830960d1a333d5cf (patch)
tree28daf075e057595fbd817bf22eef3640aac8bd49 /src/lib.rs
parentff2a4b09646a8a5949808bfadf31747751831963 (diff)
Initial implementation of --init group
As the todo list indicates, it needs some security refinement.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5e33302..c2eccbf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,8 +15,8 @@ pub fn run_command(user_input: String) -> Result<ControlFlow<(), ()>, ShackleErr
Ok(ShackleCommand::Exit) => {
return Ok(ControlFlow::Break(()));
}
- Ok(ShackleCommand::GitInit(GitInitArgs { repo_name })) => {
- let init_result = git::init(&repo_name)?;
+ Ok(ShackleCommand::GitInit(GitInitArgs { repo_name, group })) => {
+ let init_result = git::init(&repo_name, &group)?;
println!("Successfully created \"{}\"", init_result.path.display());
}
Ok(ShackleCommand::GitUploadPack(upload_pack_args)) => {