-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make HOCON config ToString() method more readable #1703
Comments
Hi Horusiath, I have used the method signature I want to confirm if its ok to use this method signature or I need to improve it before I send a pull request.Thanks. |
@mukulsinghsaini I think it's a good idea :) Could you create a PR and link this issue with it? |
…lback-1703 #1703 ToString overloaded to make HOCON config ToString more readable by including fallback
Closed via #1800 |
Right now
HoconConfig
ToString
method produces string containing only key-vals of the current config. Since structure of config objects often heavily relies of fallback mechanism, in order to get all current (overriden) key-vals in current config section is very exhausting.Therefore we could change current ToString behavior (or expose its version in form of
ToString(string format)
) that could return all of the current key-values for the hocon config. Example, given two hocon configs A and B with set in fallback relation:using
configA.WithFallback(configB).ToString(indentation: true)
would print current key-values of A, followed by key-values being fallback from B:The text was updated successfully, but these errors were encountered: