-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
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 +1,43 @@ | ||
# yamldiff | ||
|
||
yamldiff is a utility tool that applies a structural comparison on yaml files, making it easier to identify and understand the differences between them. | ||
|
||
It basically compares the structural differences between two yaml files. | ||
|
||
![example](images/example.png) | ||
|
||
## Installation | ||
|
||
```bash | ||
$ go install github.com/semihbkgr/yamldiff@latest | ||
``` | ||
|
||
Run with `help` flag to display a list of available options | ||
|
||
``` bash | ||
$ yamldiff --help | ||
|
||
yamldiff is a tool for comparing the structural differences between two yaml files | ||
|
||
Usage: | ||
yamldiff <file-left> <file-right> [flags] | ||
|
||
Flags: | ||
-c, --comment display comments in the output | ||
-e, --exit returns non-zero exit status if there is a difference between yaml files | ||
-h, --help help for yamldiff | ||
-i, --ignore ignore indexes in array | ||
-m, --metadata include metadata in the output (not work with silent flag) | ||
-p, --plain uncolored output | ||
-s, --silent print output in silent ignoring values | ||
-v, --version version for yamldiff | ||
|
||
``` | ||
## Example | ||
```bash | ||
$ yamldiff --metadata examples/pod-v1.yaml examples/pod-v2.yaml | ||
``` | ||
![example-metadata](images/example-metadata.png) |
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