diff options
Diffstat (limited to 'src/bin/ngit')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index b008cf0..68a10cc 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -182,9 +182,9 @@ fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) { | |||
| 182 | return; | 182 | return; |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | println!("{:<8} {:<8} TITLE", "ID", "STATUS"); | 185 | println!("{:<66} {:<8} TITLE", "ID", "STATUS"); |
| 186 | for (proposal, status_kind) in proposals { | 186 | for (proposal, status_kind) in proposals { |
| 187 | let id = &proposal.id.to_string()[..7]; | 187 | let id = proposal.id.to_string(); |
| 188 | let status = status_kind_to_str(*status_kind); | 188 | let status = status_kind_to_str(*status_kind); |
| 189 | let title = if let Ok(cl) = event_to_cover_letter(proposal) { | 189 | let title = if let Ok(cl) = event_to_cover_letter(proposal) { |
| 190 | cl.title | 190 | cl.title |
| @@ -193,7 +193,7 @@ fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) { | |||
| 193 | } else { | 193 | } else { |
| 194 | proposal.id.to_string() | 194 | proposal.id.to_string() |
| 195 | }; | 195 | }; |
| 196 | println!("{id:<8} {status:<8} {title}"); | 196 | println!("{id:<66} {status:<8} {title}"); |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | println!(); | 199 | println!(); |
| @@ -299,9 +299,9 @@ fn show_proposal_details( | |||
| 299 | println!(); | 299 | println!(); |
| 300 | println!( | 300 | println!( |
| 301 | "To checkout: ngit checkout {}", | 301 | "To checkout: ngit checkout {}", |
| 302 | &proposal.id.to_string()[..7] | 302 | proposal.id |
| 303 | ); | 303 | ); |
| 304 | println!("To apply: ngit apply {}", &proposal.id.to_string()[..7]); | 304 | println!("To apply: ngit apply {}", proposal.id); |
| 305 | 305 | ||
| 306 | Ok(()) | 306 | Ok(()) |
| 307 | } | 307 | } |