News for hackers. Stuff that matters.
Re:Fish: A user-friendly command line shell for macOS, Linux... by fpoling on Wednesday December 13, 2017 @03:16AM (#15912836)
For configuration I would very much prefer to have something that can be properly grepped/patched/generated with shell scripts if necessary. What openssh uses for its config mostly fulfill this, but ini file also are not that bad. Anything hierarchical like JSON/TOML/UCL etc. becomes very unattractive the moment one has to patch them from automated setup scripts.
Re:Fish: A user-friendly command line shell for macOS, Linux... by webwurst on Wednesday December 13, 2017 @01:36PM (#15916294)
There pretty mighty tools around to grep/patch/generate JSON data with shell scripts and they are made to deal with hierarchical data.

https://stedolan.github.io/jq/manual/

http://jsonnet.org/

Both are single binaries, so easy to run them where you need it. I don't know comparable stuff for the other mentioned formats, whenever I need to deal with yaml in scripts i run

https://github.com/bronze1man/yaml2json

I would be totally fine with any format that can be converted to JSON on the fly. Of course I would love to have something like these tools more integrated within a shell, but the representing text format on the disk is not that important for me.

Re:Fish: A user-friendly command line shell for macOS, Linux... by merlincorey on Wednesday December 13, 2017 @03:48AM (#15912961)
Templates in configuration management can help with this a bit.