arkadiy/php-project2
Composer 安装命令:
composer require arkadiy/php-project2
包简介
A command-line tool educational project
README 文档
README
Description
A command line utility for generating differences between two configurational files. Supporting file formats:
- json
- yaml
This is an educational project for hexlet.
Installation
In order to install and run the utility:
composer global require arkadiy/php-project2
Usage
gendiff -h
Generate diff
Usage:
gendiff (-h|--help)
gendiff [--format <fmt>] <firstFile> <secondFile>
Options:
-h --help Show this screen
--format <fmt> Report format [default: pretty]
It is possible to run the utility directly in the terminal with the command:
composer global require arkadiy/php-project2
It is possible to use the code as a library as well:
use function \Gendiff\genDiff;
Supported config formats
This util supports two different configuration files formats:
- json
- yaml
JSON
YAML
Deep nested configurational files
The util is able to read config files with deep nesting also.
Output formats
The output formats are 3:
- pretty (default format, example is shown in previous videp)
- plain
- json
PLAIN FORMAT
JSON FORMAT
Tests
This project includes unit testing. It is possible to run the tests with:
make test
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-06-23