This project implements a function gendiff that compare two configuration files and show a difference.
To compare files, you need to pass to the function gendff two args: ../path/to/file1, ../path/to/file2.
The path to the file can be either relative: ../somefile or absolute /somedir/somefile.
The function can be used as a library or as a console utility
- Python >=3.11
- pip >= 19
- poetry >= 1.2.0
- Clone git repo:
git clone git@github.com:Abra19/gendiff-python.git
- Go to directory gendiff-python:
cd gendiff-python
- Configuring
poetry
to create a virtual environment:poetry config virtualenvs.in-project true
- Create virual environment and Install dependencies
make install
- Build package
make build
- Publish package:
make publish
- Installing the package in the user's environment:
make package-install
- If you receive a tracking warning at step 7:
WARNING: The script gendiff is installed in 'path/to/your/executable' which is not on PATH.
Add this directory to PATH:export PATH=$PATH:'path/to/your/executable'
Stylish formatter(default) for plain trees:
Stylish formatter(default) for nested trees:
Plain formatter for nested trees:
Json formatter for nested trees: