yavictor/php_project2

cli config difference generator

dev-main 2021-10-06 08:17 UTC

This package is auto-updated.

Last update: 2024-04-06 14:04:56 UTC


README

Hexlet tests and linter status:

hexlet-check Code Climate issue Count Test Coverage

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

asciicast

Show difference between two 'yml' files

asciicast

Show difference between two 'ini' files

asciicast

Show difference between two 'json' nested files, with default stylish output

asciicast

Show difference between same 'json' nested files, with plain output

asciicast

Show difference between same 'json' nested files, with json output, showing internal data representation

asciicast