Skip to content

Commit

Permalink
Readme and license
Browse files Browse the repository at this point in the history
  • Loading branch information
kduma committed Jan 23, 2016
1 parent 8b2b30f commit 0456448
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compare
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $climate->arguments->add([
'format' => [
'prefix' => 'f',
'longPrefix' => 'format',
'description' => 'Output format',
'description' => 'Output format (text or cli)',
'default' => 'text'
],

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"email": "[email protected]"
}
],
"license": "GPL-3.0",
"require": {
"league/climate": "^3.2"
},
Expand Down
47 changes: 47 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# KDuma/Comparator
[![Latest Stable Version](https://poser.pugx.org/kduma/comparator/v/stable.svg)](https://packagist.org/packages/kduma/comparator)
[![Total Downloads](https://poser.pugx.org/kduma/comparator/downloads.svg)](https://packagist.org/packages/kduma/comparator)
[![Latest Unstable Version](https://poser.pugx.org/kduma/comparator/v/unstable.svg)](https://packagist.org/packages/kduma/comparator)
[![License](https://poser.pugx.org/kduma/comparator/license.svg)](https://packagist.org/packages/kduma/comparator)

Batch compare multiple files

# Setup
Run bellow command to globally install Comparator:

composer global require phpunit/phpunit

and add `~/.composer/vendor/bin/` directory to your PATH in your ~/.bash_profile (or ~/.bashrc):

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

# Updating
Execute following command:

composer global update

# Usage

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
A special thanks to creators of [StringCompare](https://github.com/akalongman/php-string-compare), a PHP class that this package is using to compare text files.

# Packagist
View this package on Packagist.org: [kduma/comparator](https://packagist.org/packages/kduma/comparator)

0 comments on commit 0456448

Please sign in to comment.