A collection of command line interface (CLI) tools.
colour_text module and colour-print command
colour-print command makes printing coloured text
easier to do on Unix, macOS and Windows terminals.
See Source/colour_text/README.md for details.
$ 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~') )
colour_filter module and colour-filter command - colour parts of lines
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:.*' red
smart-find cmmand - a smarter, simpler, find
smart-find makes it easier to access the advanced features of
See Source/smart-find/README.md for details.
Example find all python files containing
$ smart-find '*.py' -c __future__
ssh-wait will wait for a host to reboot
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 myserver
compgen bash completion helper in python
bash_compgen.py provides a simple and pythonic way to write command completion logic for
See Source/compgen/compgen.md for details.