YamlDiff
, (*1)
Spot the differences between 2 yaml files., (*2)
Installation
Build the PHAR file using Box Project., (*3)
# Fetch the sources
git clone git://github.com/MattKetmo/yamldiff.git
cd yamldiff/
# Install dependencies (see https://getcomposer.org/doc/00-intro.md#globally)
composer install
# Build the Phar (see http://box-project.org/)
box build
# Move it to your $PATH
mv yamldiff.phar /usr/local/bin/yamldiff
Usage
yamldiff file1.yml file2.yml
This will show the keys which are present on file1.yml and missing on
file2.yml (prefixed by a +), and vice versa (prefixed by a -)., (*4)
For instance, this can be really usefull when comparing your local file
parameters.yml with the versionned one parameters.yml.dist on
a Symfony project:, (*5)
yamldiff app/config/parameters.yml.dist app/config/parameters.yml
License
YamlDiff is released under the MIT License.
See the bundled LICENSE file for details., (*6)