feat(json-edit): added json-edit to update some json content with next global version #14

Merged
kjuulh merged 5 commits from feat/with-jq-edit into main 2023-08-04 19:56:18 +02:00
Showing only changes of commit ff2b59dd02 - Show all commits

View File

@@ -37,7 +37,9 @@ impl JsonEditOptions {
.ok_or(anyhow::anyhow!("path contains non utf-8 chars"))?, .ok_or(anyhow::anyhow!("path contains non utf-8 chars"))?,
) )
.output() .output()
.context(anyhow::anyhow!("failed to run jq on file"))?; .context(anyhow::anyhow!(
"failed to run jq on file, jq may not be installed or query was invalid"
))?;
if !output.status.success() { if !output.status.success() {
let err_content = std::str::from_utf8(output.stderr.as_slice())?; let err_content = std::str::from_utf8(output.stderr.as_slice())?;