damir / difference-calculator
我的第二个PHP项目
dev-master
2020-07-21 03:39 UTC
Requires
- ext-json: *
- docopt/docopt: ^1.0
- funct/funct: ^1.5
- symfony/yaml: ^5.0
- tightenco/collect: *
- wp-cli/php-cli-tools: ^0.11.11
Requires (Dev)
- phpunit/phpunit: ^8.4
- squizlabs/php_codesniffer: ^3.5.5
This package is auto-updated.
Last update: 2024-09-21 12:43:46 UTC
README
安装
使用 Composer
$ composer global require damir/difference-calculator:dev-master
设置
$ git clone https://github.com/DAS27/difference-calculator.git $ make install
运行测试
$ make test
使用方法
在bash中执行
gendiff [--format <fmt>] <firstFile> <secondFile>
格式是可选的,默认为pretty
输出格式。因此,您无需指定格式,可以直接执行,例如
gendiff <firstFile> <secondFile>
或明确指定所需的格式
gendiff --format pretty <firstFile> <secondFile>
gendiff --format plain <firstFile> <secondFile>
gendiff --format json <firstFile> <secondFile>