thiell/test — Issue #238: Diff for Clustershell commands
Author: thiell
Created: 2012-03-03 16:37:02+00:00
State: open
Labels: Lib

The main idea is to provide a diff above clutershell command output such as {{{ clush -a @all ifconfig }}} and {{{clush -a @all dmidecode }}}

Lines that are similar will be printed in black.
Lines or portion of the line that differ will be colored. For thos lines the percentage of the nodes and/or nodenames should be added at the end of the printed line.

A parameter should determine the limit for a line to be printed. If the occurrence of this line is above the threshold it will be printed otherwise the number of different occurrences will be printed.