summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-04-09 22:21:41 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-04-09 22:21:41 +0200
commitd4f5206f4c409f3e3121e5f58cd6301284fd197f (patch)
treece925feabcb3b61ff0c7cbe4b51f5b3eb6c066a6 /src
parent9d8995a8f64d589744c57abc9201b37e1442e0fb (diff)
Update naming of git-init to just init
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/parser.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 60c5df5..196078c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@ pub fn run_command(user_input: String) -> Result<ControlFlow<(), ()>, ShackleErr
git::set_description(&directory, &description)?;
println!("Successfully updated description");
}
- Ok(ShackleCommand::GitInit(GitInitArgs {
+ Ok(ShackleCommand::Init(InitArgs {
repo_name,
group,
description,
diff --git a/src/parser.rs b/src/parser.rs
index fd8ab75..14b1a49 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -14,7 +14,7 @@ pub enum ShackleCommand {
/// List all repositories available
List,
SetDescription(SetDescriptionArgs),
- GitInit(GitInitArgs),
+ Init(InitArgs),
GitUploadPack(GitUploadPackArgs),
GitReceivePack(GitReceivePackArgs),
}
@@ -26,7 +26,7 @@ pub struct SetDescriptionArgs {
}
#[derive(Parser, Clone, Debug, PartialEq, Eq)]
-pub struct GitInitArgs {
+pub struct InitArgs {
#[arg(long)]
pub group: Option<String>,
#[arg(long)]