mattketmo/yamldiff

Spot the differences between two YAML files

v1.0.0 2014-09-14 10:28 UTC

This package is auto-updated.

Last update: 2024-11-05 20:46:52 UTC


README

Build status... Code quality... License MIT Packagist

Spot the differences between 2 yaml files.

Installation

Build the PHAR file using Box Project.

# 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 -).

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:

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.