-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from VaheDanielyan/development
Add exit codes and quiet flag
- Loading branch information
Showing
6 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "diffdir" | ||
version = "0.4.3" | ||
version = "0.4.4" | ||
edition = "2021" | ||
authors = ["Vahe Danielyan <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,24 +24,21 @@ cargo install --path . | |
## Usage | ||
|
||
```sh | ||
NAME | ||
diffdir - A cli tool to compare two directories | ||
SYNOPSIS | ||
diffdir [--ignore] [--ignore-file] [--no-colors] [-h|--help] [-V|--version] <DIR_A> <DIR_B> | ||
DESCRIPTION | ||
A cli tool to compare two directories | ||
OPTIONS | ||
--ignore=IGNORE_PATTERNS | ||
--ignore-file=IGNORE_FILE | ||
--no-colors | ||
-h, --help | ||
Print help | ||
-V, --version | ||
Print version | ||
<DIR_A> | ||
<DIR_B> | ||
AUTHORS | ||
Vahe Danielyan <[email protected]> | ||
|
||
Usage: diffdir [OPTIONS] <dir a> <dir b> | ||
|
||
Arguments: | ||
<dir a> | ||
<dir b> | ||
|
||
Options: | ||
--ignore <IGNORE_PATTERNS>... | ||
--ignore-file <IGNORE_FILE> | ||
--quiet Surpress output | ||
--no-colors will not format into ansi string and / or include colors | ||
-h, --help Print help | ||
-V, --version Print version | ||
``` | ||
|
||
## Output | ||
|
||
In Addition to the standard text output the program will return **42** if there are any differences between the directories and **0** in case of them being identical. This can be handy when calling this tool from other programs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters