homeport/dyff

Support outputting "between" to yaml

vwbusguy opened this issue · 1 comments

I have a use-case where I'm looking to simplify Kubernetes helm chart values that have gotten overly verbose. This tool is useful for identifying where to look, but would be most useful if it were possible to output to yaml, only including where from and to are different (picking "to" values in the process).

If it helps, I've found an old php project that does this, but it's for an outdated version of PHP and isn't as comprehensive as your tool is for analyzing the diffs: https://github.com/JanDC/yaml-diff-tool

Has there been any consideration of this request?
My use case is to use dyff to identify data that I then migrate back into other yaml files (planning to use yq to do so)...like a selective merge once the data is identified.

...so having a native yaml output would greatly help this. The "human" output is close, but would need some modifications to make it work.
If there is no support (or plan to support), I'll take a look at if I can figure it out myself