Skip to content

Gendiff is a CLI utility for finding differences between configuration files.

Notifications You must be signed in to change notification settings

akocur/python-project-lvl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Linter

CODE CLIMATE:

Maintainability Test Coverage

Gendiff is a CLI utility for finding differences between configuration files.

Suppported formats: YAML, JSON

Usage

As external library

from gendiff import generate_diff

diff = generate_diff(file_path1, file_path2)

As CLI tool

> gendiff --help
usage: gendiff [-h] [-f FORMAT] first_file second_file

Compares two configuration files and shows a difference.

positional arguments:
  first_file
  second_file

optional arguments:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        output format (default: "stylish"). Available: ['stylish', 'plain',
                        'json']

Installation

python3 -m pip install --user git+https://github.com/akocur/python-project-lvl2.git

Uninstallation

python3 -m pip uninstall hexlet-code

Demo:

Compare plain files:

asciicast

Compare complex files:

asciicast

About

Gendiff is a CLI utility for finding differences between configuration files.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published