diff --git a/crates/pop-cli/src/commands/up/parachain.rs b/crates/pop-cli/src/commands/up/parachain.rs index 64e2630a..dba230e9 100644 --- a/crates/pop-cli/src/commands/up/parachain.rs +++ b/crates/pop-cli/src/commands/up/parachain.rs @@ -3,8 +3,8 @@ use crate::style::{style, Theme}; use clap::Args; use cliclack::{ - clear_screen, confirm, intro, log, multi_progress, outro, outro_cancel, set_theme, ProgressBar, - Theme as _, ThemeState, + clear_screen, confirm, intro, log, multi_progress, outro, outro_cancel, set_theme, spinner, + ProgressBar, Theme as _, ThemeState, }; use console::{Emoji, Style, Term}; use duct::cmd; @@ -91,8 +91,8 @@ impl ZombienetCommand { } // Finally spawn network and wait for signal to terminate - let spinner = cliclack::spinner(); - spinner.start("🚀 Launching local network..."); + let progress = spinner(); + progress.start("🚀 Launching local network..."); match zombienet.spawn().await { Ok(network) => { let mut result = @@ -143,10 +143,10 @@ impl ZombienetCommand { } if let Some(command) = &self.command { - run_custom_command(&spinner, command).await?; + run_custom_command(&progress, command).await?; } - spinner.stop(result); + progress.stop(result); // Check for any specified channels if zombienet.hrmp_channels() { @@ -156,21 +156,21 @@ impl ZombienetCommand { log::error(format!("🚫 Using `{relay_chain}` with HRMP channels is currently unsupported. Please use `paseo-local` or `westend-local`."))?; }, Some(_) => { - let spinner = spinner(); - spinner.start("Connecting to relay chain to prepare channels..."); + let progress = spinner(); + progress.start("Connecting to relay chain to prepare channels..."); // Allow relay node time to start sleep(Duration::from_secs(10)).await; - spinner.start("Preparing channels..."); + progress.set_message("Preparing channels..."); let relay_endpoint = network.relaychain().nodes()[0].client().await?; let para_ids: Vec<_> = network.parachains().iter().map(|p| p.para_id()).collect(); tokio::spawn(async move { if let Err(e) = clear_dmpq(relay_endpoint, ¶_ids).await { - spinner.stop(""); + progress.stop(""); log::error(format!("🚫 Could not prepare channels: {e}"))?; return Ok::<(), Error>(()); } - spinner.stop("Channels successfully prepared for initialization."); + progress.stop("Channels successfully prepared for initialization."); Ok::<(), Error>(()) }); },