Skip to content

ivanvasutinskiy/Gendiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Python CI

Maintainability

Test Coverage

Gendiff (Python)

The second project on Hexlet: Gendiff. Program: Python developer.

The project is aimed at working with collections. Gendiff is a command—line utility for comparing two configuration files. The tool analyzes the files and displays the differences in a readable format. It supports JSON and YAML file formats.

Installation

Cloning the GitHub repository

$ git clone https://github.com/ivanvasutinskiy/python-project-50.git

UV Installation

$ curl -LsSf https://astral.sh/uv/install.sh | sh

Launching the program

$ uv sync
$ uv build 
$ uv tool install dist/*.whl

Description

Help output

$ uv run gendiff --help
  • -h, --help — display a help message and exit.
  • -f FORMAT, --format FORMAT — set the output format (plain / json / stylish)

Examples of how the program works:

STYLISH format (default)

$ uv run gendiff ./tests/fixtures/file1.json ./tests/fixtures/file2.json

asciicast

PLAIN format

$ uv run gendiff -f plain ./tests/fixtures/file1.json ./tests/fixtures/file2.json

asciicast

JSON format

$ uv run gendiff -f json ./tests/fixtures/file1.json ./tests/fixtures/file2.json

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published