From 392da4dba7ee49f9914023525f51e903d1feab94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Wed, 7 Dec 2022 21:47:07 +0100 Subject: [PATCH] fix: re-add debug guards --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b10041f..e4478aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -193,6 +193,7 @@ pub mod aoc_cli { } pub fn read(day: u8) -> Result { + // TODO: output local puzzle if present. let puzzle_path = get_puzzle_path(day); let args = build_args( @@ -275,7 +276,10 @@ pub mod aoc_cli { } fn call_aoc_cli(args: &[String]) -> Result { - println!("Calling >aoc with: {}", args.join(" ")); + if cfg!(debug_assertions) { + println!("Calling >aoc with: {}", args.join(" ")); + } + Command::new("aoc") .args(args) .stdout(Stdio::inherit())