upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 19:04:42 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-05 19:04:42 +0000
commitf78c2f58e1da73591c782086f76a8584c0406ca5 (patch)
tree285cb17545501a8e361f21ecc1e40a4b5fbe8ceb
parentbdcfc7ae0b0558843b160acc4d2c8db9996cdc60 (diff)
fix(issue): add --comments flag to issue list command
--comments was supported by 'issue view' but not 'issue list', making 'ngit issue list <id> --comments' fail while the equivalent 'view' command worked fine.
-rw-r--r--src/bin/ngit/cli.rs4
-rw-r--r--src/bin/ngit/main.rs3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs
index d558525..018525c 100644
--- a/src/bin/ngit/cli.rs
+++ b/src/bin/ngit/cli.rs
@@ -390,6 +390,10 @@ pub enum IssueCommands {
390 /// Output as JSON 390 /// Output as JSON
391 #[arg(long)] 391 #[arg(long)]
392 json: bool, 392 json: bool,
393 /// Include full comment thread when viewing a specific issue (requires
394 /// ID)
395 #[arg(long)]
396 comments: bool,
393 /// Show details for a specific issue (event-id or nevent) 397 /// Show details for a specific issue (event-id or nevent)
394 #[arg(value_name = "ID|nevent")] 398 #[arg(value_name = "ID|nevent")]
395 id: Option<String>, 399 id: Option<String>,
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index a656412..215d5dd 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -166,6 +166,7 @@ async fn main() {
166 status, 166 status,
167 labels, 167 labels,
168 json, 168 json,
169 comments,
169 id, 170 id,
170 offline, 171 offline,
171 } => { 172 } => {
@@ -173,7 +174,7 @@ async fn main() {
173 status.clone(), 174 status.clone(),
174 labels.clone(), 175 labels.clone(),
175 *json, 176 *json,
176 false, 177 *comments,
177 id.clone(), 178 id.clone(),
178 *offline, 179 *offline,
179 ) 180 )