summaryrefslogtreecommitdiffstats
path: root/src/commands/source.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/source.rs')
-rw-r--r--src/commands/source.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs
index 8b1cf3e..f29ce84 100644
--- a/src/commands/source.rs
+++ b/src/commands/source.rs
@@ -86,7 +86,13 @@ pub(in crate::commands) async fn verify_impl<'a, I>(
where
I: Iterator<Item = &'a Package> + 'a,
{
- let multi = Arc::new(indicatif::MultiProgress::new());
+ let multi = Arc::new({
+ let mp = indicatif::MultiProgress::new();
+ if progressbars.hide() {
+ mp.set_draw_target(indicatif::ProgressDrawTarget::hidden());
+ }
+ mp
+ });
let results = packages
.map(|p| sc.sources_for(p).into_iter())
@@ -222,7 +228,13 @@ pub async fn download(
.map(String::from)
.map(PackageVersionConstraint::new)
.transpose()?;
- let multi = indicatif::MultiProgress::new();
+ let multi = {
+ let mp = indicatif::MultiProgress::new();
+ if progressbars.hide() {
+ mp.set_draw_target(indicatif::ProgressDrawTarget::hidden());
+ }
+ mp
+ };
let r = repo
.packages()