rinatsin/php-project-lvl2

PHP 项目实现了 gendiff

安装: 47

依赖: 0

建议者: 0

安全: 0

星星: 1

关注者: 2

分支: 0

开放问题: 0

类型:项目

1.7.5 2020-05-05 14:38 UTC

README

Build Status Maintainability Test Coverage

本仓库包含 Hexlet 培训平台第二个项目的实现,Generate Difference!

实用工具用于在配置文件中查找差异。

实用工具功能

  • 支持不同格式
  • 生成 plain text、pretty 和 json 格式的报告

安装实用工具

使用 composer 安装实用工具,请使用以下命令

  • composer global require rinatsin/php-project-lvl2

asciicast

使用示例

1. 在 before.json 和 after.json 两个配置文件中查找差异,报告以 pretty 格式输出

asciicast

2. 在 before.yml 和 after.yml 两个配置文件中查找差异,报告以 pretty 格式输出

asciicast

3. 在具有树状结构的 beforeTree.json 和 afterTree.json 两个配置文件中查找差异,报告以 pretty 格式输出

asciicast

4. 使用 '--format' 标志选择报告输出格式。两种输出格式类型为 'pretty'、'plain' 和 'json'。

asciicast