diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index 0750ce0..76220d9 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -205,7 +205,7 @@ pub async fn launch(status: String, json: bool, id: Option<String>) -> Result<() | |||
| 205 | if json { | 205 | if json { |
| 206 | output_json(&filtered_proposals, &repo_ref)?; | 206 | output_json(&filtered_proposals, &repo_ref)?; |
| 207 | } else { | 207 | } else { |
| 208 | output_table(&filtered_proposals, &repo_ref); | 208 | output_table(&filtered_proposals, &repo_ref, &status); |
| 209 | } | 209 | } |
| 210 | 210 | ||
| 211 | Ok(()) | 211 | Ok(()) |
| @@ -221,9 +221,9 @@ fn status_kind_to_str(kind: Kind) -> &'static str { | |||
| 221 | } | 221 | } |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) { | 224 | fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef, status_filter: &str) { |
| 225 | if proposals.is_empty() { | 225 | if proposals.is_empty() { |
| 226 | println!("No proposals found matching the filter."); | 226 | println!("No proposals found matching status: {status_filter}"); |
| 227 | return; | 227 | return; |
| 228 | } | 228 | } |
| 229 | 229 | ||
| @@ -242,6 +242,7 @@ fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) { | |||
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | println!(); | 244 | println!(); |
| 245 | println!("--status {status_filter}"); | ||
| 245 | println!("To view: ngit list <id>"); | 246 | println!("To view: ngit list <id>"); |
| 246 | println!("To checkout: ngit checkout <id>"); | 247 | println!("To checkout: ngit checkout <id>"); |
| 247 | println!("To apply: ngit apply <id>"); | 248 | println!("To apply: ngit apply <id>"); |