nerijusza / yamldiff
Spot the differences between two YAML files. Forked from 'mattketmo/yamldiff'
v1.0.2
2018-06-13 18:49 UTC
Requires
- symfony/console: <4.2
- symfony/finder: <4.2
- symfony/process: <4.2
- symfony/yaml: <4.2
This package is not auto-updated.
Last update: 2024-05-04 00:05:44 UTC
README
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.