https://github.com/acatton/yamlkeysdiff
:eyes: Compares the keys from two yaml files
https://github.com/acatton/yamlkeysdiff
Last synced: 10 months ago
JSON representation
:eyes: Compares the keys from two yaml files
- Host: GitHub
- URL: https://github.com/acatton/yamlkeysdiff
- Owner: acatton
- License: eupl-1.1
- Created: 2015-07-12T05:32:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T03:43:43.000Z (almost 11 years ago)
- Last Synced: 2025-06-21T07:04:36.687Z (12 months ago)
- Language: Haskell
- Homepage:
- Size: 160 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
YAMLKeysDiff
============
Command line tools to generate a fast and human readable diff::
$ cat a.yml
a: hello
b: world
d:
a: a
b: b
A: A
$ cat b.yml
a: world
c: hello
d:
a: a
b: b
c: c
$ yamlkeysdiff a.yml b.yml
> b
< c
> d:A
< d:c
$ yamlkeysdiff "a.yml#d" "b.yml#d"
> A
< c
Installation
------------
You can install it from hackage::
$ cabal update
$ cabal install yamlkeysdiff
Development
------------
::
$ cabal sandbox init # Always use sandboxes (like python virtual env)
$ cabal install --only-dependencies # Install the package dependencies
# if this fails, try:
# cabal install --only-dependencies --force-reinstalls
$ cabal configure
$ cabal build
$ ./dist/build/yamlkeysdiff/yamlkeysdiff
You can also do that with::
$ make all
TODO
----
* Add tests
* Don't compare the subkeys when the parent key is missing
* Write a generic diff function which can diff many files