colourizer

Crates.iocolourizer
lib.rscolourizer
version0.1.4
sourcesrc
created_at2021-05-19 21:25:15.294588
updated_at2021-05-28 03:42:20.119369
descriptionEasily colourize command output
homepage
repositoryhttps://codeberg.org/BubbyRoosh/colour
max_upload_size
id399739
size150,845
BubbyRoosh (BubbyRoosh1)

documentation

README

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"

ping fortune

Library

Example usage

println!("{}", "this will be red and bold!".fgred().bold());
println!("{}", "this will be a bright blue".rgb("0;200;255"));
Commit count: 0

cargo fmt