Live data from Hacker News

Select, put and delete data from JSON, TOML, YAML, XML and CSV files

github.com

31–34 of 34 posts

Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files

#31
post #23

That's a fascinating concept. Is there anything similar for INI? Such a tool for ini could help in automatically changing configuration files for software which is most often configured by ini files.

Hey, author of dasel here. I have an issue open to add INI support - just haven't gotten round to it yet. Life has been busy!

Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files

#32

The "delete" example on the readme is a bit odd, since it seems to suggest that you need to specify the value to delete as well as the path. The equivalent in the documentation does not have this problem.

Can confirm this was a mistake I made when mass-compiling the docs

Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files

#33

Reminds me of https://github.com/johnkerl/miller which is also a go based tool cloning features from tools like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON

I'm a big fan of miller (mlr) -- it's the tool I landed on when I needed to "graduate" from awk to look at CSV data. But when I read "go based" in your comment, I thought "nope, it's written in C". But no! It was ported to go -- very interesting!

The developer wrote a comprehensive document explaining the rationale behind the porting that answered all my questions and a lot more: https://github.com/johnkerl/miller/blob/main/README-go-port.....

Thought other miller/mlr fans (that don't follow its development) might find this interesting as well.

(The dasel tool looks very cool, too -- looks like a good complement to mlr and similar tools!)

Post reply on HN