From a2d4df6e759070fe88a311d9a03836cb3a405012 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 16 Feb 2026 12:53:13 +0000 Subject: fix: report wording consistancy in publishing always report publishing and finish with published --- src/bin/git_remote_nostr/push.rs | 1 - src/lib/client.rs | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 5cbec7f..c2f4ddd 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs @@ -285,7 +285,6 @@ async fn create_and_publish_events_and_proposals( // TODO check whether tip of each branch pushed is on at least one git server // before broadcasting the nostr state if !events.is_empty() { - term.write_line("broadcast to nostr relays:")?; send_events( client, Some(git_repo.get_path()?), diff --git a/src/lib/client.rs b/src/lib/client.rs index 6f817d5..12df19e 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs @@ -2485,12 +2485,13 @@ pub async fn send_events( // Pre-add a heading bar at position 0 so it has a reserved slot // before any relay bars are added. - let heading_bar = if use_concise { + let heading_bar = { let bar = m.add(ProgressBar::new(0).with_style(ProgressStyle::with_template("{msg}").unwrap())); + // if !use_concise { + bar.set_message("Publishing to nostr relays..."); + // } Some(bar) - } else { - None }; let reveal_state: Option> = if use_concise { @@ -2645,7 +2646,8 @@ pub async fn send_events( handle.abort(); } if let Some((_, spinner)) = &spinner_multi { - spinner.finish_and_clear(); + spinner.set_style(ProgressStyle::with_template("{msg}").unwrap()); + spinner.finish_with_message("Published to nostr relays"); } Ok(()) -- cgit v1.2.3