Skip to content

Commit

Permalink
fix: Write to stdout for machine readable output (#1639)
Browse files Browse the repository at this point in the history
Fixes #1638
  • Loading branch information
Hofer-Julian authored Jul 19, 2024
1 parent 8b26d03 commit 0159198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cli/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ pub async fn execute(args: Args) -> miette::Result<()> {

if out.is_empty() {
eprintln!("Configuration not set");
} else {
eprintln!("{}", out);
}
println!("{}", out);
}
Subcommand::Prepend(args) => alter_config(
&args.common,
Expand Down
2 changes: 1 addition & 1 deletion src/cli/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ pub fn execute(args: Args) -> miette::Result<()> {
.sorted()
.map(|name| name.as_str())
.join(" ");
eprintln!("{}", unformatted);
println!("{}", unformatted);
return Ok(());
}

Expand Down

0 comments on commit 0159198

Please sign in to comment.