5 releases
0.1.4 | May 28, 2021 |
---|---|
0.1.3 | May 24, 2021 |
0.1.2 | May 23, 2021 |
0.1.1 | May 20, 2021 |
0.1.0 | May 19, 2021 |
#42 in #command-output
29 downloads per month
Used in apod
120KB
153 lines
Colourizer
Easily colourize command output
Usage
Colourizer can either display text directly or get output from previous commands as a standalone program, or be used as a library for other crates.
Standalone
Direct
colourizer -b this will be bold!
colourizer -c red this will be red
colourizer --rgb "0;200;255" this will be bright blue
Previous
echo this will be bold | colourizer -b
echo this will be red | cowsay | colourizer -c red
ping gnu.org | colourizer --rgb "0;200;255"
Library
Example usage
println!("{}", "this will be red and bold!".fgred().bold());
println!("{}", "this will be a bright blue".rgb("0;200;255"));