Skip to content

Commit 07a0295

Browse files
committed
[toolchains] add ANSI color to std stream toolchain name
1 parent 02bcfe9 commit 07a0295

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/toolchains.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::path::{Path, PathBuf};
1212
use std::process::{self, Command, Stdio};
1313

1414
use chrono::{Date, naive, Utc};
15+
use colored::*;
1516
use dialoguer::Select;
1617
use failure::{Fail, Error};
1718
use flate2::read::GzDecoder;
@@ -139,7 +140,8 @@ impl Toolchain {
139140
client: &Client,
140141
dl_params: &DownloadParams,
141142
) -> Result<(), InstallError> {
142-
eprintln!("installing {}", self);
143+
let tc_stdstream_str = format!("{}", self);
144+
eprintln!("installing {}", tc_stdstream_str.green());
143145
let tmpdir = TempDir::new_in(&dl_params.tmp_dir, &self.rustup_name())
144146
.map_err(InstallError::TempDir)?;
145147
let dest = dl_params.install_dir.join(self.rustup_name());

0 commit comments

Comments
 (0)