From ff5e3b4dd718e622d81e02c50786c2ec3d5437ae Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Sat, 8 Apr 2023 19:41:37 +0200 Subject: Fill in test for updating description on existing repo This also isn't implemented yet. Naughty naughty. --- src/parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 5295483..fd8ab75 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -13,11 +13,18 @@ pub enum ShackleCommand { Exit, /// List all repositories available List, + SetDescription(SetDescriptionArgs), GitInit(GitInitArgs), GitUploadPack(GitUploadPackArgs), GitReceivePack(GitReceivePackArgs), } +#[derive(Parser, Clone, Debug, PartialEq, Eq)] +pub struct SetDescriptionArgs { + pub directory: PathBuf, + pub description: String, +} + #[derive(Parser, Clone, Debug, PartialEq, Eq)] pub struct GitInitArgs { #[arg(long)] -- cgit v1.2.3