Skip to content
/ diffcmd Public

print diff if command output changes

License

Notifications You must be signed in to change notification settings

jwilk/diffcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

diffcmd runs the supplied command, saves the output, and prints diff if it changed since the last time the command was run:

$ diffcmd -h
Usage: diffcmd -n IDENT [-U N] [-F RE] [-I RE] -- COMMAND [ARG...]

$ diffcmd -n test -- bash -c 'echo $RANDOM'
--- old/test
+++ new/test
@@ -0,0 +1 @@
+4074

$ diffcmd -n test -- bash -c 'echo $RANDOM'
--- old/test
+++ new/test
@@ -1 +1 @@
-4074
+32451

Prerequisites

About

print diff if command output changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages