From e18a928db5916fce43c35dff585072dace0da7e0 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Mon, 3 Jul 2023 21:54:21 +0200 Subject: Added a new "--verbose" option to the list command --- src/parser.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 30eb1e0..b429572 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -11,7 +11,7 @@ pub enum ShackleCommand { /// Create a new repository Init(InitArgs), /// List all repositories available - List, + List(ListArgs), /// Sets the description of a repository, as shown in the CLI listing and web interfaces SetDescription(SetDescriptionArgs), /// Sets the main branch of the repository @@ -41,6 +41,13 @@ pub struct InitArgs { pub repo_name: String, } +#[derive(Parser, Clone, Debug, PartialEq, Eq)] +pub struct ListArgs { + /// List extra metadata, like the repo's size on disk + #[arg(short, long)] + pub verbose: bool, +} + #[derive(Parser, Clone, Debug, PartialEq, Eq)] pub struct SetDescriptionArgs { /// The full relative path of the repository, for example git/shuckie/repo.git -- cgit v1.2.3