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.
Select, put and delete data from JSON, TOML, YAML, XML and CSV files
31–34 of 34 posts
Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files
#32The "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.
Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files
#33Reminds 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
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!)
Re: Select, put and delete data from JSON, TOML, YAML, XML and CSV files
#34Can this or anything else flatten arrays of JSON objects to CSV?