Skip to content

VaLeraGav/php-project-lvl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage linter and tests

Вычислитель отличий

Второй проект из четырёх, в рамках профессии PHP-программист на Хекслет.

Описание проекта

Необходимо реализовать сравнение 2 файлов (форматов json, yml/yaml). Работатет с плоским и вложеными данными. Отчет строиться как в json, plain, stylish формате.

Требование, установка и запуск

Наличие на компьютере PHP >= 7 и Composer.

$ sudo apt install php

$ git clone https://github.com/VaLeraGav/php-project-lvl2.git

$ make install

CI приложжение

$ bin/gendiff -h - все возможности gendiff

$ bin/gendiff -v - версия

$ bin/gendiff <pathToFile1> <pathTofile2> [--format <fmt>] - получить различие в формате

Пример использования

Сравнение файлов json и yaml/yml в формате по умолчанию stylish

asciicast

asciicast

Сравнение файлов json и yaml/yml в формате stylish

asciicast

Сравнение файлов json и yaml/yml в формате plain

asciicast

Сравнение файлов json и yaml/yml в формате json

asciicast

About

Difference Calculator - a program that determines the difference between files

Resources

Stars

Watchers

Forks

Packages

No packages published