Open Trojaner opened 3 years ago
Is it possible to update an existing yaml file while preserving comments at the same time?
Probably not out of the box and likely only by using low level model
Currently we use YamlDotNet which can't do this and the authors of it don't appear to be interested into adding this either.
I'm not against the feature but if you want it, you will have to contribute to it, PR welcome
@Trojaner Did you find a solution for this? I'm looking for the same thing.
Is it possible to update an existing yaml file while preserving comments at the same time?
We currently need this for OpenMod (OpenMod is a free and open source plugin framework). Sometimes we add new options to the config yamls. These need to be merged to the current user configs but we would like to preserve comments. Currently we use YamlDotNet which can't do this and the authors of it don't appear to be interested into adding this either.
Example use case