Upgrade parser

This commit is contained in:
2025-05-03 16:40:17 -07:00
parent 00c88ccf51
commit b8302d3381
4 changed files with 442 additions and 31 deletions

View File

@ -2,7 +2,7 @@ use anyhow::{Context, Result};
use serde::Deserialize;
use std::io::Write;
use std::{collections::HashMap, path::Path};
use tracing::{error, trace, warn};
use tracing::{debug, error, trace, warn};
use crate::manifest::PickConfig;
@ -31,7 +31,7 @@ impl PickTool for ToolBash {
}
Some(script) => {
trace!("Running `before` script");
debug!("Running `before` script");
let mut temp_file =
tempfile::NamedTempFile::new().context("while creating temporary script")?;
writeln!(temp_file, "{}", script).context("while creating temporary script")?;
@ -79,7 +79,7 @@ impl PickTool for ToolBash {
}
Some(script) => {
trace!("Running `after` script");
debug!("Running `after` script");
let mut temp_file =
tempfile::NamedTempFile::new().context("while creating temporary script")?;
writeln!(temp_file, "{}", script).context("while creating temporary script")?;