Gendiff is a command line utility for comparing two configuration files. The tool analyzes the files and the differences in a human-readable format.
- Supports different input formats: yaml, json
- Generating a report in the form of plain text, stylish and json
To install, clone the ropository and install using uv:
git clone https://github.com/Nurzhan2023/python-project-50.git
cd python-project-50
make installTo display usage information:
uv run gendiff -hCommand Line Options
- h, --help - display this help message and exit
- f FORMAT, --format FORMAT - set the output format(supported fotmats: plain, json, stylish)Example of comparing two files:
gendiff gendiff/tests/file1.json gendiff/tests/file2.jsonThe output will appear in the following format:
{
- follow: False
host: hexlet.io
- proxy: 123.124.53.22
- timeout: 50
+ timeout: 20
+ verbose: True
}TESTS To run test, use the following command:
make test-coverageLINTER To check the code with the linter, execute:
make lintThe project uses GitHub Actions for automated testing and linting. You can see status of the last commit at the top of this README