delta

command module
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

codecov

Delta

Diff 2 sets and apply command to deltas

Installation

If you have golang, easiest install is

go install github.com/fortio/delta@latest

Or brew custom tap

brew install fortio/tap/delta

Otherwise head over to https://github.com/fortio/delta/releases for binary releases

Usage

delta -b "echo NEW:" -a "echo REMOVED:" oldFile newFile

if oldFile is

old1
old2
gone1
old3

and newFile is

new1
old1
old2
old3
new2

will output

REMOVED: gone1
NEW: new1
NEW: new2

See also delta.txtar for examples (tests)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL