golored

Simply color your shell scripts' output by piping it into this program.
Installation
Pre-built binaries
Simply download the binary from the releases page.
Build from source
git clone https://github.com/alexcoder04/golored.git
cd golored
go build .
go install # installs the binary to your $GOPATH
Usage
argument |
function |
-help |
print help |
-i |
print color codes |
-s SOURCE_FILE |
read from file |
Examples:
golored -s file.txt f:red underline
Outputs the content of file.txt
underlined and with red foreground.
ls | golored b:blue
Colors the output of ls
with blue background.
List of colors:
black
, blue
, red
, magenta
, green
, cyan
, yellow
, white
bold
, dim
, italic
, underline