fix: status mesages go to stderr not stdout (#483)

Progress spinner and status line are written to stderr
instead of stdout.

No longer any need to detect if stdout is being redirected.
This commit is contained in:
andy.boot
2025-04-01 23:19:36 +01:00
committed by GitHub
parent 1b4116e39d
commit 9a49221ac1
3 changed files with 14 additions and 11 deletions
+3
View File
@@ -10,6 +10,9 @@ use std::str;
fn build_command<T: AsRef<OsStr>>(command_args: Vec<T>) -> String {
let mut cmd = &mut Command::cargo_bin("dust").unwrap();
// Hide progress bar
cmd = cmd.arg("-P");
for p in command_args {
cmd = cmd.arg(p);
}