You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
User installs OpenMod and the following yaml gets created:
rcon:
# Some long comment that describe what bind does and why it is set like thatbind: 0.0.0.0enabled: true
An OpenMod update adds a new "rcon:port" option with 1554 as default value
The yaml file gets updated while preserving comments:
rcon:
# Some long comment that describe what bind does and why it is set like thatbind: 0.0.0.0port: 1554enabled: true
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: