upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/sub_commands/list.rs')
-rw-r--r--src/bin/ngit/sub_commands/list.rs22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs
index 76220d9..fc0883a 100644
--- a/src/bin/ngit/sub_commands/list.rs
+++ b/src/bin/ngit/sub_commands/list.rs
@@ -243,9 +243,15 @@ fn output_table(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef, status
243 243
244 println!(); 244 println!();
245 println!("--status {status_filter}"); 245 println!("--status {status_filter}");
246 println!("To view: ngit list <id>"); 246 println!("{}", console::style("To view: ngit list <id>").yellow());
247 println!("To checkout: ngit checkout <id>"); 247 println!(
248 println!("To apply: ngit apply <id>"); 248 "{}",
249 console::style("To checkout: ngit checkout <id>").yellow()
250 );
251 println!(
252 "{}",
253 console::style("To apply: ngit apply <id>").yellow()
254 );
249} 255}
250 256
251fn output_json(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) -> Result<()> { 257fn output_json(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) -> Result<()> {
@@ -344,8 +350,14 @@ fn show_proposal_details(
344 } 350 }
345 351
346 println!(); 352 println!();
347 println!("To checkout: ngit checkout {}", proposal.id); 353 println!(
348 println!("To apply: ngit apply {}", proposal.id); 354 "{}",
355 console::style(format!("To checkout: ngit checkout {}", proposal.id)).yellow()
356 );
357 println!(
358 "{}",
359 console::style(format!("To apply: ngit apply {}", proposal.id)).yellow()
360 );
349 361
350 Ok(()) 362 Ok(())
351} 363}