From d4f5206f4c409f3e3121e5f58cd6301284fd197f Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Sun, 9 Apr 2023 22:21:41 +0200 Subject: Update naming of git-init to just init --- src/lib.rs | 2 +- src/parser.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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, 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, #[arg(long)] -- cgit v1.2.3