mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user