alshad/gendiff

The second project in the profession of PHP training platform Hexlet

v0.3.6 2020-03-12 19:00 UTC

This package is not auto-updated.

Last update: 2024-04-15 17:46:34 UTC


README

Maintainability Test Coverage PHP CI

Install

$ composer global require alshad/gendiff

https://asciinema.org/a/fgL24h2P4rSsYnsFRjxW3iIoN

CLI for Generate diff

Help and Version

$ gendiff -h

$ gendiff -v

https://asciinema.org/a/iNDdvVwz1nXgT4VeYgZ4q7CGn

Compare 2 files

Generate diff for flat .json files (files are in the working directory)

$gendiff file1.json file2.json.

https://asciinema.org/a/dNepFcHJ4ZPoD92Rd8ZSWTdzx

Generate diff for flat .yaml files (files are in the working directory)

$gendiff file1.yaml file2.yaml

https://asciinema.org/a/1TgByMyPBKlBjIp1MfRMJCWNZ

Generate diff for recursive .json files (files are in the working directory)

$gendiff file1.json file2.json

https://asciinema.org/a/6S60yo57AR5cAgHbKV9DSKa5y

Generate diff for recursive .yaml files (files are in the working directory)

$gendiff file1.yaml file2.yaml

https://asciinema.org/a/uUwbynJfhzrQqvFCqCnKlaCrr

Generate diff for recursive .json files (files are in the working directory) and output in format "plain"

$gendiff --format plain file1.json file2.json

https://asciinema.org/a/EIcWFiEiNwMyANoBjFbcKBXu7

Generate diff for recursive .json files (files are in the working directory) and output in format "json"

$gendiff --format json file1.json file2.json

https://asciinema.org/a/V0aWiNg63G6EW1sszyrR9RxIK