this post was submitted on 08 Dec 2023
76 points (100.0% liked)
Programming
17511 readers
401 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For everything else, there's
yq
,xq
, andtomlq
.I use all these tools so little that I have to relearn them every single time, making them much less useful to me than they would be otherwise.
yq is a wrapper around jq iirc and has the same syntax, but it do yaml.
Small disclaimer that i think there may be 2 tools known as yq and this is only true of one of them.
I meant tools like jq. I hardly ever use it as it’s hard to use and as a result I forget it making it even harder to use. The same applies to awk, sed, etc. Any tool with a bunch of command line flags and hard to understand arguments and syntax will always be low on my “want to use” list. Ripgrep is a prime example of how to build a command line app that is easy to use every time without trying to remember a billion things.
JSON > Yaml
And
jc
, apparently: https://programming.dev/post/7063427