kduma/comparator

批量比较多个文件

2.0.0 2022-10-19 16:23 UTC

This package is auto-updated.

Last update: 2024-08-30 01:11:24 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

批量比较多个文件

设置

运行以下命令以全局安装Comparator

composer global require kduma/comparator

并将~/.composer/vendor/bin/目录添加到你的~/.bash_profile(或~/.bashrc)中的PATH

export PATH=~/.composer/vendor/bin:$PATH

更新

执行以下命令

composer global update

用法

Usage: bin/compare [-c compare_to, --compare compare_to] [-f format, --format format] [-h, --help] [-o output, --output output] [path] [file]

Required Arguments:
	path
		The path with files to compare.

Optional Arguments:
	-h, --help
		Prints a usage statement
	-c compare_to, --compare compare_to
		Compare to
	-f format, --format format
		Output format (text or cli)
	-o output, --output output
		Output file for text format
	file
		If defined, compares specified file in subfolder.

StringCompare

特别感谢StringCompare的创建者,这是一个PHP类,本包使用它来比较文本文件。

Packagist

在Packagist.org上查看此包:kduma/comparator