Skip to content

Comments

chore: Change jq commands to use sponge#2445

Merged
mergify[bot] merged 2 commits intomasterfrom
spofford/sponge
Aug 15, 2022
Merged

chore: Change jq commands to use sponge#2445
mergify[bot] merged 2 commits intomasterfrom
spofford/sponge

Conversation

@adamspofford-dfinity
Copy link
Contributor

Currently, we have a large number of commands that go cat <<<"$(jq ... foo.json)" >foo.json. This is hard to read, hard to write, and breaks vscode's syntax highlighter depending on the quoting. This PR changes it to jq ... foo.json | sponge foo.json, utilizing moreutils' sponge, which also lets us get rid of every single SC2094 suppression.

@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner August 15, 2022 14:34
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ghost ghost added the automerge-squash label Aug 15, 2022
@mergify mergify bot merged commit 56a5228 into master Aug 15, 2022
@mergify mergify bot deleted the spofford/sponge branch August 15, 2022 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant