yavictor / php_project2
cli config difference generator
dev-main
2021-10-06 08:17 UTC
Requires
- docopt/docopt: ^1.0
- lstrojny/functional-php: ^1.17
- symfony/yaml: ^5.2
Requires (Dev)
This package is auto-updated.
Last update: 2024-04-06 14:04:56 UTC
README
Hexlet tests and linter status:
gendiff:
Command line interface util that can show difference between two configuration files in json and yaml format. Also it can show only parameters that chaged in configuration and generate json result of both configs.
Install
For global install:
composer global require yavictor/php_project2
For local use:
composer global require yavictor/php_project2
Then istall depandencies:
make install
Compare two JSONs
As "stylish" is default output:
gendiff first.json second.json
same as
gendiff --format stylish first.json second.json
Compare two YML
gendiff --format stylish first.yml second.yml
Plain output
gendiff --format plain first second
Json output
gendiff --format json first second