malcom/gendiff

gendiff

v1.2.1 2020-02-02 13:52 UTC

This package is auto-updated.

Last update: 2024-09-29 05:35:48 UTC


README

Hexlet PHP project - level 2

This repository contains Difference Calculator - utility for finding differences in configuration files

Maintainability Test Coverage Build Status

Install:

$ composer global require malcom/gendiff

Usage:

      gendiff (-h|--help)
      gendiff (-v|--version)
      gendiff [--format <fmt>] <file1> <file2>

    Options:
      -h --help                     Show this screen
      -v --version                  Show version
      --format <fmt>                Report format [default: pretty]

Gendiff can works with different configuration files formats:

  1. JSON format

$ gendiff before.json after.json

asciicast

  1. YAML format

$ gendiff before.yaml after.yaml

asciicast

###Gendiff can works with recursive configuration files:

asciicast

Gendiff generates output data in different formats:

  1. Pretty format (default)

  2. Text format

gendiff --format plain before.yaml after.yaml

asciicast

  1. JSON format

gendiff --format json before.yaml after.yaml

asciicast