A collection of command line interface (CLI) tools.
The colour-print command makes printing coloured text
easier to do on Unix, macOS and Windows terminals.
See Source/colour_text/README.md for details.
For example:
$ colour-print "~info Info:~ Home folder is %s" "$HOME"From python use the ColourText class to implement the same features.
from colour_text import ColourText
ct = ColourText()
ct.initTerminal()
print( ct('~red Some red text~ and some ~green Green text~') )The colour-filter command reads lines from its input,
colours parts of the line and prints the result on its output.
For example colour the output of a build script. Colour Info: in green
and all of the line that starts Error: in red.
$ ./build.sh 2>&1 | colour-filter '^Info:' green 'Error:.*' redsmart-find makes it easier to access the advanced features of
find and grep.
See Source/smart-find/README.md for details.
Example find all python files containing __future__:
$ smart-find '*.py' -c __future__The ssh-wait command waits until a server is able to offer ssh access.
See Source/ssh_wait/README.md for details.
$ ssh myserver reboot
$ ssh-wait myserver && ssh myserverbash_compgen.py provides a simple and pythonic way to write command completion logic for bash.
See Source/compgen/compgen.md for details.