upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/cli.rs')
-rw-r--r--src/bin/ngit/cli.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs
index 0599b51..5ee9165 100644
--- a/src/bin/ngit/cli.rs
+++ b/src/bin/ngit/cli.rs
@@ -177,6 +177,10 @@ pub enum PrCommands {
177 /// Filter by status (comma-separated: open,draft,closed,applied) 177 /// Filter by status (comma-separated: open,draft,closed,applied)
178 #[arg(long, default_value = "open,draft")] 178 #[arg(long, default_value = "open,draft")]
179 status: String, 179 status: String,
180 /// Filter by label (repeatable, OR logic: --label bug --label
181 /// help-wanted)
182 #[arg(long = "label", value_name = "LABEL")]
183 labels: Vec<String>,
180 /// Output as JSON 184 /// Output as JSON
181 #[arg(long)] 185 #[arg(long)]
182 json: bool, 186 json: bool,
@@ -311,9 +315,10 @@ pub enum IssueCommands {
311 /// Filter by status (comma-separated: open,draft,closed,applied) 315 /// Filter by status (comma-separated: open,draft,closed,applied)
312 #[arg(long, default_value = "open")] 316 #[arg(long, default_value = "open")]
313 status: String, 317 status: String,
314 /// Filter by hashtag/label (comma-separated) 318 /// Filter by label (repeatable, OR logic: --label bug --label
315 #[arg(long)] 319 /// help-wanted)
316 hashtag: Option<String>, 320 #[arg(long = "label", value_name = "LABEL")]
321 labels: Vec<String>,
317 /// Output as JSON 322 /// Output as JSON
318 #[arg(long)] 323 #[arg(long)]
319 json: bool, 324 json: bool,
@@ -347,7 +352,7 @@ pub enum IssueCommands {
347 /// Issue body / description 352 /// Issue body / description
348 #[arg(long)] 353 #[arg(long)]
349 body: Option<String>, 354 body: Option<String>,
350 /// Hashtag labels (repeatable: --label bug --label help-wanted) 355 /// Labels to apply (repeatable: --label bug --label help-wanted)
351 #[arg(long = "label", value_name = "LABEL")] 356 #[arg(long = "label", value_name = "LABEL")]
352 labels: Vec<String>, 357 labels: Vec<String>,
353 }, 358 },