golored

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

README

golored

Simply color your shell scripts' output by piping it into this program.

If you are interested in a more lightweight but also less-features version written in Shell, see alexcoder04/shclrz.

screenshot

Installation

Arch Linux

Golored is available on the AUR. Either install it manually or use an AUR helper of your choice.

Pre-built binaries

Download the corresponding binary for your system from the releases page.

Build from source
git clone https://github.com/alexcoder04/golored.git
cd golored
make build   # to compile
make install # to install the binary to your $GOPATH

Usage

golored [-s SOURCE_FILE] formatting...

golored [-help / -i / -ii]

argument function
-version print program version and exit
-help print help
-i print color codes
-ii print extended color codes (8-bit)
-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

0-255 (8-bit, use -ii flag to see how they look)

Prepend with f: to specify the foreground and with b: for background.

List of formatting options:

bold, dim, italic, underline

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL