Do you have HOCON config files, that include other config files, which include other config files, and do you find it hard to see what is the final value of a configuration key, and which file it comes from?
Well, then, you're in luck! Introducing.. HOCON config printer!!
Parses a HOCON config file, merges all the settings from all included files, and writes the output to stdout.
It also shows from which file a setting was taken from (in verbose mode; useful for debugging).
Default output: concise: JSON (almost) representation, no comments.
-verbose: add comments that indicate how settings were merged
-resolve: Representation can contain substitutions, ex: ${VARIABLE}, which isn't JSON compliant. Using -resolve will resolve all substitutions with env vars (and remove the keys entirely where the values are unresolved). Maybe not the most useful option, because of the key removal thingie.
Clone this repository / download locally as zip.
Run ./install.sh
That's it, you can now go into any directory and run hocon-config-printer
The project is a small wrapper around the HOCON library.
Vlad Dinulescu vlad.dinulescu.dev@gmail.com