summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-17 11:10:53 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-17 11:11:36 +0200
commitf5a00e9090b9d81936137c3fc676cfd0ad25430c (patch)
tree5384a422af6ec34685b31308caf2fd70f1d6114e /src/main.rs
parentb541b141e66d5cf0ba4b190eda6422126951af6e (diff)
Use shlex to split shell arguments
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 50f5127..bcbfe1c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -51,8 +51,8 @@ fn run_command(user_input: String) -> Result<ControlFlow<(), ()>, ShackleError>
return Ok(ControlFlow::Break(()));
}
Ok(ShackleCommand::GitInit(GitInitArgs { repo_name })) => {
- git::init(&repo_name)?; // TODO should report this error differently
- println!("Successfully created {}.git", repo_name);
+ git::init(&repo_name)?;
+ println!("Successfully created \"{}.git\"", repo_name);
}
Ok(ShackleCommand::GitUploadPack(upload_pack_args)) => {
let mut command = Command::new("git-upload-pack");