NAME

nddiff - diff tool for nested data structures

SYNOPSIS

nddiff [OPTIONS] <file1> <file2> [<file3> ... ]

DESCRIPTION

Diff for nested data structures with human friendly (colored) and machine-readable (JSON) output format.

OPTIONS

--brief

Show where differences has happend, but don't show what exactly changed.

--[no]colors

On/Off colors for diff.

--ctx-text [int]

Amount of lines for multiline values context. Default is 3.

--full

Don't suppresss common items in JSON mode.

--full-headers

Print full headers (delta printed by default).

--grep <path>

Grep substructures to diff. See path syntax description at https://metacpan.org/pod/Struct::Path::PerlStyle

--help|-h

Print a help message and exit.

--ifmt <JSON|YAML>

Force specified input format usage. Automatically choosed (using file extension) if omitted.

--ignore <path>

Ignore substructure. May be used several times.

--json

Use JSON as output diff format.

--[no]pretty

On/Off pretty-print for JSON. Enabled by default.

--quiet|-q

Don't show diff, only exit code shows exists diff or not.

--rules

Dump diff as rules for ndproc.

--show

Visualize diff (JSON formatted diff file must be provided as argument).

--verbose|-v [int]

Increase verbosity, max level - 4.

--version|-V

Print version and exit.

EXAMPLES

Human-friendly diff:

nddiff a.json b.json

Machine-readable diff:

nddiff --json a.json b.json

EXIT STATUS

0   No errors, no diff.
1   Generic error code.
2   I/O Error.
4   Path related errors.
8   Diff exists.

BUGS

Report bugs to https://github.com/mr-mixas/NDTools/issues

SEE ALSO

App::NDTools::ndpatch, App::NDTools::ndproc, App::NDTools::ndquery

App::NDTools::NDDiff

LICENSE AND COPYRIGHT

Copyright 2016-2018 Michael Samoglyadov <mixas at cpan.org>.

This program is free software; you can redistribute it and/or modify it under the terms of GNU General Public License 3 or later versions.