Crates.io | dotacat |
lib.rs | dotacat |
version | 0.3.0 |
source | src |
created_at | 2020-09-26 17:34:11.784634 |
updated_at | 2022-11-18 00:17:17.766383 |
description | Like lolcat, but fast |
homepage | https://git.scd31.com/stephen/dotacat |
repository | https://git.scd31.com/stephen/dotacat |
max_upload_size | |
id | 293201 |
size | 74,647 |
dotacat
is meant to be a replacement to lolcat
. If you're not aware, lolcat
is a rather silly program which behaves like cat
, but produces a colourful, rainbow output.
Speed!
$ time echo hi | lolcat
real 0m0.422s
user 0m0.393s
sys 0m0.028s
I use lolcat in my .bashrc
file, so this amount of time is not ideal for me.
In contrast:
time echo hi | dotacat
real 0m0.045s
user 0m0.030s
sys 0m0.020s
Because Dota is better than LoL (According to people - I play neither)
If you have cargo installed, just run: cargo install dotacat
If not, head over to the releases page and download the latest release. Then run:
chmod +x dotacat
sudo mv dotacat /usr/local/bin
USAGE:
dotacat [FLAGS] [OPTIONS] [files]...
ARGS:
<files>... Files to concatenate(`-` for STDIN)
FLAGS:
-h, --help Prints help information
-i, --invert Invert fg and bg
-V, --version Prints version information
OPTIONS:
-F, --freq <freq> Rainbow frequency [default: 0.1]
-S, --seed <seed> Rainbow seed, 0 = random [default: 0.0]
-p, --spread <spread> Rainbow spread [default: 1.0]
Examples:
dotacat f - g Output f's contents, then stdin, then g's contents.
fortune | dotacat Display a rainbow cookie.