Skip to content

Wenn911/DifferenceCalculator

Repository files navigation

Hexlet tests and linter status:

Actions Status Lint Maintainability Test Coverage

Description

Gendiff - a program defining the difference between two data structures.

The capabilities of the utility:

  • Support for different input formats: yaml, json
  • Report generation as plain text, stylish and json

Installation

Clone or fork repository git clone make install

Test & linter

make test make lint


Examples:

# format plain
gendiff --format plain path/to/file.yml another/path/file.json

Property 'common.follow' was added with value: false
Property 'group1.baz' was updated. From 'bas' to 'bars'
Property 'group2' was removed

# format stylish
gendiff filepath1.json filepath2.json

{
+ follow: false
    setting1: Value 1
- setting2: 200
- setting3: true
+ setting3: {
        key: value
    }
+ setting4: blah blah
+ setting5: {
        key5: value5
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published