CLI utilite that shows difference between two JSON or YML files
- python = "^3.10"
- pytest = "^7.1.3"
- PyYAML = "^6.0"
usage: gendiff [-h] [-f FORMAT] first_file second_file
Generate diff
positional arguments:
first_file
second_file
optional arguments:
-h, --help show help message and exit
-f, --format set format of output
pip install --user git+https://github.com/Un1que11/python-project-50.git
git clone https://github.com/Un1que11/python-project-50.git
cd python-project-50
make build
make reinstall
-
file.json:
gendiff first_file.json second_file.json
-
file.yml:
gendiff first_file.yml second_file.yml
-
file_tree.json (format stylish):
gendiff first_file_tree.json second_file_tree.json
-
file_tree.yml (format stylish):
gendiff first_file_tree.yml second_file_tree.yml
-
format plain:
gendiff --format plain file1.json file2.json
-
format json:
gendiff --format json file1.json file2.json