From 20fa6743a287ae9432bbf07d75235643eee7168f Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Tue, 7 May 2024 20:01:33 -0700 Subject: [PATCH] fix: debug escape issues --- crates/cli/src/commands/plumbing.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/commands/plumbing.rs b/crates/cli/src/commands/plumbing.rs index fbca62173..e342e7e46 100644 --- a/crates/cli/src/commands/plumbing.rs +++ b/crates/cli/src/commands/plumbing.rs @@ -27,7 +27,7 @@ use super::parse::{run_parse, ParseInput}; use super::patterns::PatternsTestArgs; use super::patterns_test::get_marzano_pattern_test_results; -#[derive(Deserialize)] +#[derive(Deserialize, Debug)] struct PlumbingApplyInput { pub pattern_body: String, pub paths: Vec, @@ -123,6 +123,7 @@ pub(crate) async fn run_plumbing( apply_pattern_args, shared_args, } => { + eprintln!("Running apply"); let buffer = read_input(&shared_args)?; let input: PlumbingApplyInput = serde_json::from_str::(&buffer).map_err(|e| { anyhow!( @@ -131,6 +132,7 @@ pub(crate) async fn run_plumbing( e ) })?; + eprint!("Input: {:?}", input); let grit_files = if input.paths.is_empty() { PatternsDirectory::new() } else { @@ -146,6 +148,7 @@ pub(crate) async fn run_plumbing( } else { input.pattern_body }; + println!("Running apply with pattern: {}", body); run_apply_pattern( body, SharedFilterArgs::default(),