GitXplorerGitXplorer
a

yamlkeysdiff

public
4 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
1728b099ff17a003d6bf47d300384841471b4924

Update the README, users should install it from Hackage

aacatton committed 9 years ago
Unverified
8868ba19fe55ac00a6f329ab44caaa6e5ec33885

Back to development

aacatton committed 9 years ago
Unverified
66801495fd91b4a8f974196abd80cea477a8767a

Release 0.5.1

aacatton committed 9 years ago
Unverified
7a211df2c0fdc3ca7a04b192c6db43a5fec949d3

Add a change log

aacatton committed 9 years ago
Unverified
f17d57e756f708ac3803f0cf2db3a714a94afa28

Fix packaging

aacatton committed 9 years ago
Unverified
bf77c805a91df63cbfab4f422396a5086df12ce0

Back to development

aacatton committed 9 years ago

README

The README file for this repository.

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