diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-24 20:34:11 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-25 08:50:34 +0100 |
commit | f0aeeca3e5edac302aa67ca87297fe6f0ecb7473 (patch) | |
tree | 70fb42d5864a9c81164ded3bc55c97f96ceac787 /src/orchestrator/orchestrator.rs | |
parent | 014f1889bc8c8c658923148c1471ff3c35ff57e1 (diff) |
Fix: Make sure multiprogress bars are hidden, if we hide progress bars
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
-rw-r--r-- | src/orchestrator/orchestrator.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs index 51c6d9a..de50b36 100644 --- a/src/orchestrator/orchestrator.rs +++ b/src/orchestrator/orchestrator.rs @@ -216,7 +216,13 @@ impl<'a> Orchestrator<'a> { } async fn run_tree(self) -> Result<(Vec<ArtifactPath>, HashMap<Uuid, Error>)> { - let multibar = Arc::new(indicatif::MultiProgress::new()); + let multibar = Arc::new({ + let mp = indicatif::MultiProgress::new(); + if self.progress_generator.hide() { + mp.set_draw_target(indicatif::ProgressDrawTarget::hidden()); + } + mp + }); // For each job in the jobdag, built a tuple with // |