From b541b141e66d5cf0ba4b190eda6422126951af6e Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Thu, 16 Mar 2023 22:51:00 +0200 Subject: Git push --- src/parser.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index ef7d5f8..59dc7d8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -9,6 +9,7 @@ pub enum ShackleCommand { Exit, GitInit(GitInitArgs), GitUploadPack(GitUploadPackArgs), + GitReceivePack(GitReceivePackArgs), } #[derive(Subcommand, Clone, Debug, PartialEq, Eq)] @@ -36,6 +37,13 @@ pub struct GitUploadPackArgs { pub directory: String, } +#[derive(Parser, Clone, Debug, PartialEq, Eq)] +pub struct GitReceivePackArgs { + #[arg(long)] + pub http_backend_info_refs: bool, + pub directory: String, +} + impl FromStr for ShackleCommand { type Err = clap::error::Error; -- cgit v1.2.3