From 17d31258117ec51d0e79c488ed8f863ad47b945f Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 16 Feb 2026 22:25:29 +0000 Subject: style: make hint lines yellow in ngit list output Use console::style().yellow() for 'To view/checkout/apply' hints to match git CLI hint styling. --- src/bin/ngit/sub_commands/list.rs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'src/bin/ngit') 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 println!(); println!("--status {status_filter}"); - println!("To view: ngit list "); - println!("To checkout: ngit checkout "); - println!("To apply: ngit apply "); + println!("{}", console::style("To view: ngit list ").yellow()); + println!( + "{}", + console::style("To checkout: ngit checkout ").yellow() + ); + println!( + "{}", + console::style("To apply: ngit apply ").yellow() + ); } fn output_json(proposals: &[(&nostr::Event, Kind)], _repo_ref: &RepoRef) -> Result<()> { @@ -344,8 +350,14 @@ fn show_proposal_details( } println!(); - println!("To checkout: ngit checkout {}", proposal.id); - println!("To apply: ngit apply {}", proposal.id); + println!( + "{}", + console::style(format!("To checkout: ngit checkout {}", proposal.id)).yellow() + ); + println!( + "{}", + console::style(format!("To apply: ngit apply {}", proposal.id)).yellow() + ); Ok(()) } -- cgit v1.2.3