Replies: 2 comments
-
|
For anyone looking for this, the following is a workaround using process substitution until this gets added: diff <(dasel -f doc1.yaml) <(dasel -f doc2.yaml)diff (dasel -f doc1.yaml | psub) (dasel -f doc2.yaml | psub) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
It looks like this could be used to perform the actual diff: https://github.com/sergi/go-diff Perhaps it would convert to JSON internally and perform the diff on the text based output to keep things simple. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A diff command would be very useful.
From reddit: https://www.reddit.com/r/golang/comments/owbdij/dasel_v1160_added_a_delete_command_meaning_you/h7fq2bp?utm_source=share&utm_medium=web2x&context=3
The diff command should accept 2 documents (in any supported format) and output a standardised diff.
Beta Was this translation helpful? Give feedback.
All reactions