3 ms·
I like using Nushell for this. It has a `from` builtin for all sorts of formats https://www.nushell.sh/commands/categories/formats.html https://www.nushell.sh/c
by FireInsight 2y ago
I like using Nushell for this. It has a `from` builtin for all sorts of formats https://www.nushell.sh/commands/categories/formats.html https://www.nushell.sh/commands/categories/formats.html and after that the data is just tables, which you can query with other builtins and syntax https://www.nushell.sh/book/navigating_structured_data.html https://www.nushell.sh/book/navigating_structured_data.html
- RulerOf 2y agoI got really excited when I saw `from_ini` but disappointed when I saw no `to_ini`. I would really like to find a good workflow for idempotent modifications to INI files, but haven't stumbled across one yet.
- saint_yossarian 2y agoI'm abusing `git config -f $PATH` as a poor man's portable INI parser/modifier in shell scripts, works pretty well but imposes some Git-specific syntax limitations.
- RulerOf 2y agoFunny enough, the thing that brought this up for me most recently was that some value in `~/.gitconfig` is not idempotent when set through the command line, and I was trying to use it in a shell startup script.