Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: Use render target in push spinner
Erik Kundt committed 9 months ago
commit 6d8ef87ce4f1c5fd682a40f549af5440f710ffe6
parent 3a5f2ded290d8a33739cdec7574a2a4e2b0f7b2b
1 file changed +3 -3
modified crates/radicle-remote-helper/src/push.rs
@@ -898,16 +898,16 @@ fn sync(
    profile: &Profile,
) -> Result<(), cli::node::SyncError> {
    let progress = if io::stderr().is_terminal() {
-
        cli::node::SyncWriter::Stderr(io::stderr())
+
        term::RenderTarget::Stderr
    } else {
-
        cli::node::SyncWriter::Sink
+
        term::RenderTarget::Hidden
    };
    let result = cli::node::announce(
        repo,
        cli::node::SyncSettings::default().with_profile(profile),
        cli::node::SyncReporting {
            progress,
-
            completion: cli::node::SyncWriter::Stderr(io::stderr()),
+
            completion: term::RenderTarget::Stderr,
            debug: opts.sync_debug,
        },
        &mut node,