feat: swap println for eprintln or debug_eprintln

Unified expected output to always eprintln so outputs can be piped to
other processes. Added debug_eprintln and switched all occurances of
debug_println.
This commit is contained in:
2024-10-25 09:00:56 +02:00
parent 6fcf48ed61
commit 73a0b87c31
4 changed files with 17 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ use std::{
process::{Child, Command, Stdio},
};
use crate::debug_println;
use crate::debug_eprintln;
pub struct Args(Vec<String>);
@@ -64,7 +64,7 @@ impl CommandBuilder {
}
pub fn build(self) -> Result<Command> {
debug_println!("-----\n{self}\n-----");
debug_eprintln!("-----\n{self}\n-----");
let (first, rest) = self.args.split_first().context("empty args")?;
let mut command = Command::new(first);