💾 Archived View for dioskouroi.xyz › thread › 24942687 captured on 2020-10-31 at 01:02:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Dasel: Query/update data structs from the cmdline. Supports JSON,YAML,TOML,XML

Author: Novalty93

Score: 41

Comments: 6

Date: 2020-10-30 14:40:04

Web Link

________________________________________________________________________________

Novalty93 wrote at 2020-10-30 14:40:05:

I've been working on a tool to query/update data structures from the commandline. It's comparable to jq/yq but supports JSON, YAML, TOML and XML. I'm not aware of anything that attempted to do this so I rolled my own. Let me know what you think

hyperman1 wrote at 2020-10-30 18:01:45:

This seems very handy, thank you very much.

It would be great if it could support perfect roundtripping: Comments, ordering, whitespace,... are not touched. It would make fearless updating of config files a breeze.

This I understand would be a huge undertaking, requiring writing your own parsers.

Not that I want to be ungratefull. This looks a very usefull tool as is.

onetom wrote at 2020-10-30 17:52:19:

Only if it would support EDN (

https://github.com/edn-format/edn

) too... :)

Although I was satisfied with Jet (

https://github.com/borkdude/jet

) so far.

jph wrote at 2020-10-30 17:58:20:

Great work! I can totally see the usefulness of this. And your examples of `dasel` side-by-side with `jq` and `yq` are very much appreciated because you're making it easy to learn.

js4ever wrote at 2020-10-30 17:57:41:

Really nice, I can see several use case where a simple bash script + Dasel would save me some higher level coding. I will try it soon! Thanks

baq wrote at 2020-10-30 18:29:46:

yaml for configuration really should die a fiery death. any tool that helps work with it before that happens is very welcome.