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.rs29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs
index b9b274e..37d85a2 100644
--- a/src/bin/ngit/cli.rs
+++ b/src/bin/ngit/cli.rs
@@ -270,6 +270,15 @@ pub enum PrCommands {
270 #[arg(long)] 270 #[arg(long)]
271 offline: bool, 271 offline: bool,
272 }, 272 },
273 /// convert a PR back to draft (author or maintainer only)
274 Draft {
275 /// Proposal event-id (hex) or nevent (bech32)
276 #[arg(value_name = "ID|nevent")]
277 id: String,
278 /// Use local cache only, skip network fetch
279 #[arg(long)]
280 offline: bool,
281 },
273 /// add a comment to a PR 282 /// add a comment to a PR
274 Comment { 283 Comment {
275 /// Proposal event-id (hex) or nevent (bech32) 284 /// Proposal event-id (hex) or nevent (bech32)
@@ -373,11 +382,29 @@ pub enum IssueCommands {
373 #[arg(long = "label", value_name = "LABEL")] 382 #[arg(long = "label", value_name = "LABEL")]
374 labels: Vec<String>, 383 labels: Vec<String>,
375 }, 384 },
376 /// close an issue (author or maintainer only) 385 /// close an issue without resolving it (author or maintainer only)
377 Close { 386 Close {
378 /// Issue event-id (hex) or nevent (bech32) 387 /// Issue event-id (hex) or nevent (bech32)
379 #[arg(value_name = "ID|nevent")] 388 #[arg(value_name = "ID|nevent")]
380 id: String, 389 id: String,
390 /// Optional reason (e.g. wontfix, duplicate, invalid)
391 #[arg(long)]
392 reason: Option<String>,
393 /// Use local cache only, skip network fetch
394 #[arg(long)]
395 offline: bool,
396 },
397 /// mark an issue as resolved (author or maintainer only)
398 #[command(
399 long_about = "mark an issue as resolved (author or maintainer only)\n\nuse this when the issue has been fixed or addressed, as distinct from closing without resolution"
400 )]
401 Resolved {
402 /// Issue event-id (hex) or nevent (bech32)
403 #[arg(value_name = "ID|nevent")]
404 id: String,
405 /// Optional reason or resolution summary
406 #[arg(long)]
407 reason: Option<String>,
381 /// Use local cache only, skip network fetch 408 /// Use local cache only, skip network fetch
382 #[arg(long)] 409 #[arg(long)]
383 offline: bool, 410 offline: bool,