summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-07-03 21:54:21 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-07-03 21:54:21 +0200
commite18a928db5916fce43c35dff585072dace0da7e0 (patch)
treed33c8d6c08a779b0f28ddff83ce540b3821160e4 /src/parser.rs
parentff05e4ab91b3b84ffb04b3d8089052112e7bd51c (diff)
Added a new "--verbose" option to the list command
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs9
1 files changed, 8 insertions, 1 deletions
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
@@ -42,6 +42,13 @@ pub struct InitArgs {
}
#[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
#[arg(value_parser = RelativePathParser)]