alshad / gendiff
The second project in the profession of PHP training platform Hexlet
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- docopt/docopt: ^1.0
- funct/funct: ^1.5
- symfony/yaml: ^5.0
Requires (Dev)
README
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