Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gendiff (generating file difference)

Actions Status gendiff Maintainability Rating Coverage

Program that determines the difference between two data structures

  • Support for various input formats: YAML, JSON
  • Report generation in plain text, stylish, and JSON formats

Requirements:

  • python >= 3.12
  • uv >= 0.8

Help for use:

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

Compares two configuration files and shows a difference.

positional arguments:
  first_file
  second_file

options:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        set format of output

Example

  • Compare two files and output using stylish format:
gendiff <file_path1> <file_path2> --format=stylish

asciicast

  • Compare two files and output using plain format:
gendiff <file_path1> <file_path2> --format=plain

asciicast

  • Compare two files and output using json format:
gendiff <file_path1> <file_path2> --format=json

asciicast


Tech stack


Get started

  • Clone repository:
git clone git@github.com:ilrosch/python-project-50.git
  • Install dependencies:
make install
  • Run linter:
make lint
  • Run tests:
make test

About

Compares two configuration files and shows a difference

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages