-
stylish,
-
plain,
-
json.
STYLISH
Default format.
gendiff path/to/file1 path/to/file2
Data difference description keys:
| Key | Meaning |
|---|---|
| + | key-value pair is present only in the second file |
| - | key-value pair is present only in the first file |
| space | key-value pair is present in the both files |
PLAIN
A plain descriptive format with only changed key-value pairs shown.
gendiff -f plain path/to/file1 path/to/file2
Property "SomeProperty" was removed
Property "SomeProperty" was added with value: "SomeValue"
Property "SomeProperty" was updated. From Value1 to Value2
If a value is a dictionary, it is displayed as "[complex value]".
JSON
A usual json format.
gendiff -f json path/to/file1 path/to/file2
pip install git+https://github.com/Maroosha/python-project-lvl2.git
gendiff -h
gendiff --format path/to/file1 path/to/file2