-
Notifications
You must be signed in to change notification settings - Fork 1
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
Maintain comments, formatting when dumping YAML #15
Comments
This would be great, unfortunately it requires a YAML parser which parses extra metadata about the YAML document like whitespace and comments, and maintains that when dumping.
|
I looked into this some more, there is not a good option for Java. There is a good option for Python though, so I may consider porting the library to Python, which has better support for CLI apps anyway: http://yaml.readthedocs.org/en/latest/overview.html |
Note the above yaml library's preservation of formatting is not perfect:
|
#42 is implemented which helps. I think I can make this work for comments without too much effort, but not formatting. Comments are probably more important to maintain than formatting, though. |
Not everybody using the hiera data will be looking at monarch files. While it's good to have comments in the changeset we loose the ability to comment the hiera yaml. This can help folks understand why something was set etc.
The text was updated successfully, but these errors were encountered: