Skip to content

Commit 73228ee

Browse files
committed
fix(client-cli): output progress bars to stderr instead of stdout
All progress message should be written to stderr so stdout can be used only for the output of the command. This have no impact to json output has they were hidden.
1 parent 498819c commit 73228ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mithril-client-cli/src/utils/progress_reporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl From<ProgressOutputType> for ProgressDrawTarget {
2424
fn from(value: ProgressOutputType) -> Self {
2525
match value {
2626
ProgressOutputType::JsonReporter => ProgressDrawTarget::hidden(),
27-
ProgressOutputType::Tty => ProgressDrawTarget::stdout(),
27+
ProgressOutputType::Tty => ProgressDrawTarget::stderr(),
2828
ProgressOutputType::Hidden => ProgressDrawTarget::hidden(),
2929
}
3030
}

0 commit comments

Comments
 (0)