github homeport/dyff v0.2-alpha
dyff version v0.2-alpha

latest releases: v1.7.1, v1.7.0, v1.6.0...
pre-release6 years ago

Switched terminal width detection

Changed code to detect terminal width to be more operating system independent.

Updated vendor directory

Pulled in updates for vendor directory that contain updates to
the https://github.com/spf13 package.

Improved cert delta output

Removed github.com/grantae/certinfo dependency in favour
for an output that looks like the summary from
https://www.sslshopper.com/certificate-decoder.html.

Output improvements for certificates

Added flag --no-cert-inspection to disable certificate decoding
for content comparision. This will result in raw-text compare. This
fix includes another output improvement that tries to display
multi-line strings next to each other.

Added restructure feature

If dealing with generated YAML files leaves you with reordered
hashes that render the output hard to read, you can now let this
tools reorder some known keys into a more human pleasing order.

Fixed nice location output

The nice location function returned paths like /dev/fd as
URIs even though they are clearly file system paths. This was
fixed by checking the file existence with stats first.

Fixed location loading

There was an issue with the order of checks while loading the
input data. It was reworked and separated into two functions
so that there is a clear path what is checked in which order.

Reworked use of panic

Introduced a function to Exit with a provided error and switched
to this function as much as possible. There are only a couple of
panic calls left, all at positions where they should be deadcode.

Initial update to avoid panic output

Added function to exit program with a text and the provided error
text from the actual Go error. Reworked the file loading part to
return a proper error if the file cannot be found. This will now
be displayed on STDOUT and a non-zero exit status.

Add swap flag

Added flag for between subcommand to swap both input arguments.
There are actually use cases where this is helpful, believe it or not.

Ignore order changes in hashs as diffs

The order of keys in hashes is interesting for a human, but does not matter
from a semantic point of view. Therefore, in simple lists dyff will convert
MapSlices into maps before creating a hash of the entry so that the order
does not matter.

Support order change detection in simple lists

Added code to detect order changes in simple lists based on the hash
of the respective entries. The output currently displays the order of
the entries that are common to both lists. This might be subject to
changes in the future if this turn out to be too much data to be
displayed.

Terminal output improvement

Checks were added to verify the terminal width is big enough to display
elements next to each other. This includes the order change output,
which is most likely to use a lot of horizontal space. Order changes
output lists will either be displayed as a single line if they consume
less than 50 % of the terminal width, or multi line otherwise.

Added cross-compile script

The new compile script will compile dyff for various platforms

Don't miss a new dyff release

NewReleases is sending notifications on new releases.