fix: re-add debug guards

This commit is contained in:
Felix Spöttel 2022-12-07 21:47:07 +01:00
parent 9e8672d9b4
commit 392da4dba7

View file

@ -193,6 +193,7 @@ pub mod aoc_cli {
} }
pub fn read(day: u8) -> Result<Output, AocCliError> { pub fn read(day: u8) -> Result<Output, AocCliError> {
// TODO: output local puzzle if present.
let puzzle_path = get_puzzle_path(day); let puzzle_path = get_puzzle_path(day);
let args = build_args( let args = build_args(
@ -275,7 +276,10 @@ pub mod aoc_cli {
} }
fn call_aoc_cli(args: &[String]) -> Result<Output, AocCliError> { fn call_aoc_cli(args: &[String]) -> Result<Output, AocCliError> {
println!("Calling >aoc with: {}", args.join(" ")); if cfg!(debug_assertions) {
println!("Calling >aoc with: {}", args.join(" "));
}
Command::new("aoc") Command::new("aoc")
.args(args) .args(args)
.stdout(Stdio::inherit()) .stdout(Stdio::inherit())