The program works with files of the format .json and .yml any nesting.
It takes as arguments two files to compare and the format in which the result should be output.
By default, the result is output in stylish format, but you can also specify plain or json.
The name of the format should be specified after the -f
switch.
For example, if you want output in plain format, you would enter the command:
gendiff -f plain path_to_file path_to_file
This asciinema demonstrates the generation of file differences in stylish format:
Demonstrates the generation of file differences in plain format:
Demonstrates the generation of file differences in json format:
For write to a file, just specify the path to the file: gendiff -f json path_to_file path_to_file > file_for_writing
. The output has already been converted to the json format.