RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Support for generating YAML diff files in Content.YAMLLinter

Open mqole opened this issue 2 months ago • 1 comments

see #6131 requires https://github.com/space-wizards/space-station-14/pull/41215 to work with command line

I take no credit for all the node parsing, @perryprog did the initial work on this. I just iterated off that.

using IPrototypeManager to serialize entities we can output a .yml list of entities that includes components inherited from parents. Using the DiffPlex library (which i hope i have added correctly?) we can then generate a differential between two of these .yml lists.

Also got a content-side PR to add arguments to Content.YAMLLinter's command line to be able to run this pretty easily. image

To use, first run with --save to create the before state, make changes, then run with --diff. example output git gist

I dont have a strong frame of reference for a lot of the systems this PR works with so am more than happy to make any changes that may improve code functionality or readability.

mqole avatar Oct 31 '25 05:10 mqole

based based based based based based based based based based

perryprog avatar Oct 31 '25 14:10 perryprog