This utility generates a difference of two files with various output formats
Supported files:
-
JSON (
.json
file extension) -
YAML (
.yml
and.yaml
)
Output formats:
stylish
(default) — handy diff tree with+
and-
change notationplain
— human-readable report: what happened with itemsjson
— JSON-compatible output of the internal difference tree
git clone https://github.com/Matheria/frontend-project-lvl2.git
make install
Usage: gendiff [options] <filepath1> <filepath2>
Compares two configuration files and shows a difference
Options:
-V, --version output the version number
-f, --format <type> output format (choices: "json", "plain", "stylish", default: "stylish")
-h, --help display help for command