Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix output of checkout command
Alexis Sellier committed 3 years ago
commit 8279ef72fd6cc7b3623ee6ad01ee5e695eff375c
parent fdad6358fce828763a712cea63fa0738636b111e
2 files changed +1 -7
modified radicle-cli/examples/rad-checkout.md
@@ -7,7 +7,6 @@ $ rad checkout rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
Initializing local checkout for 🌱 rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji (heartwood)

ok Performing checkout...
-
ok Setting up remotes...

🌱 Project checkout successful under ./heartwood

modified radicle-cli/src/commands/checkout.rs
@@ -151,14 +151,11 @@ pub fn execute(options: Options, profile: &Profile) -> anyhow::Result<PathBuf> {

/// Setup a remote and tracking branch for each given remote.
pub fn setup_remotes(setup: project::SetupRemote, remotes: &[NodeId]) -> anyhow::Result<()> {
-
    let mut spinner = term::spinner("Setting up remotes...");
    for remote_id in remotes {
-
        spinner.message(format!("Setting up remote {remote_id}.."));
-

        if let Some((remote, branch)) = setup.run(*remote_id)? {
            let remote = remote.name().unwrap(); // Only valid UTF-8 is used.

-
            term::success!("Remote {} set", term::format::highlight(remote));
+
            term::success!("Remote {} created", term::format::tertiary(remote));
            term::success!(
                "Remote-tracking branch {} created for {}",
                term::format::highlight(branch),
@@ -166,7 +163,5 @@ pub fn setup_remotes(setup: project::SetupRemote, remotes: &[NodeId]) -> anyhow:
            );
        }
    }
-
    spinner.finish();
-

    Ok(())
}