diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-04-09 22:21:41 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-04-09 22:21:41 +0200 |
commit | d4f5206f4c409f3e3121e5f58cd6301284fd197f (patch) | |
tree | ce925feabcb3b61ff0c7cbe4b51f5b3eb6c066a6 /src | |
parent | 9d8995a8f64d589744c57abc9201b37e1442e0fb (diff) |
Update naming of git-init to just init
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/parser.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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)] |