Skip to content

comparing the structural differences between two yaml files

License

Notifications You must be signed in to change notification settings

semihbkgr/yamldiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

$ go install github.com/semihbkgr/yamldiff@latest

Run with help flag to display a list of available options

$ 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

$ yamldiff --metadata examples/pod-v1.yaml examples/pod-v2.yaml

example-metadata