chore: 🔊 Remove third parties logs

This commit is contained in:
Sergio Gasquez 2023-01-02 16:24:51 +01:00
parent 3e0b164421
commit 9ab7cb98bf

View File

@ -237,7 +237,10 @@ impl Crate {
} }
pub fn uninstall(extra_crate: &str) -> Result<(), Error> { pub fn uninstall(extra_crate: &str) -> Result<(), Error> {
cmd!("cargo", "uninstall", extra_crate).run()?; cmd!("cargo", "uninstall", extra_crate)
.into_inner()
.stdout(Stdio::null())
.spawn()?;
Ok(()) Ok(())
} }
} }
@ -255,7 +258,10 @@ impl Installable for Crate {
if PathBuf::from(crate_path).exists() { if PathBuf::from(crate_path).exists() {
warn!("{} {} is already installed", emoji::WARN, self.name); warn!("{} {} is already installed", emoji::WARN, self.name);
} else { } else {
cmd!("cargo", "install", &self.name).run()?; cmd!("cargo", "install", &self.name)
.into_inner()
.stdout(Stdio::null())
.spawn()?;
} }
Ok(vec![]) // No exports Ok(vec![]) // No exports
@ -287,7 +293,9 @@ impl RiscVTarget {
"riscv32imc-unknown-none-elf", "riscv32imc-unknown-none-elf",
"riscv32imac-unknown-none-elf" "riscv32imac-unknown-none-elf"
) )
.run()?; .into_inner()
.stdout(Stdio::null())
.spawn()?;
Ok(()) Ok(())
} }
} }
@ -424,7 +432,9 @@ async fn install_rustup(nightly_version: &str, host_triple: &HostTriple) -> Resu
"minimal", "minimal",
"-y" "-y"
) )
.run()?; .into_inner()
.stdout(Stdio::null())
.spawn()?;
#[cfg(not(windows))] #[cfg(not(windows))]
cmd!( cmd!(
"/bin/bash", "/bin/bash",
@ -437,7 +447,9 @@ async fn install_rustup(nightly_version: &str, host_triple: &HostTriple) -> Resu
"minimal", "minimal",
"-y" "-y"
) )
.run()?; .into_inner()
.stdout(Stdio::null())
.spawn()?;
#[cfg(windows)] #[cfg(windows)]
let path = format!( let path = format!(
@ -462,7 +474,7 @@ async fn install_rustup(nightly_version: &str, host_triple: &HostTriple) -> Resu
} }
/// Installs the desired version of the nightly toolchain. /// Installs the desired version of the nightly toolchain.
fn install_rust_nightly(version: &str) -> Result<()> { fn install_rust_nightly(version: &str) -> Result<(), Error> {
info!("{} Installing {} toolchain", emoji::WRENCH, version); info!("{} Installing {} toolchain", emoji::WRENCH, version);
cmd!( cmd!(
"rustup", "rustup",
@ -472,8 +484,9 @@ fn install_rust_nightly(version: &str) -> Result<()> {
"--profile", "--profile",
"minimal" "minimal"
) )
.run() .into_inner()
.into_diagnostic()?; .stdout(Stdio::null())
.spawn()?;
Ok(()) Ok(())
} }