Apart from a cute cuddly shark plushie from IKEA, BLÅHAJ is a lolcat-like CLI tool that colorizes your input, shows flags and prints colorful sharks!
It has a wide variety of flags/colors to choose from and many options from flag size to whether to colorize by line, word or character.
You can download one of the statically-linked pre-built binaries from the releases page.
They are built & published by our lovely actions.
Arch Linux users can install the blahaj (or the blahaj-git) AUR package.
docker run --rm -it --name blahaj ghcr.io/geopjr/blahaj -h
crystal
-1.8.0
$ make
(or$ make static
on Alpine Linux for a static build)# make install
Flags with eg. triangles, circles or symbols, need enough horizontal space to determine where and how to display them. BLÅHAJ can't know in advance how long the input is going to be.
Just like the previous question, BLÅHAJ can't know how long the text is going to be (vertically) since it colorizes the input as it comes in.
Great! Follow the Contributing section and modify data/colors.yaml.
flag name:
color:
- hex color
- per
- stripe
alias:
- aliases
- if any
$ blahaj -h
BLÅHAJ v2.2.0
Usage:
blahaj [arguments]
blahaj [arguments] file
command | blahaj [arguments]
Examples:
blahaj -c trans ~/.bashrc
blahaj -s -b
neofetch | blahaj -c gay
blahaj -f -c lesbian -m 4
blahaj -w /etc/os-release
Arguments:
-b, --background Color the background
-s, --shark Shork
-f, --flag Return a flag
-i, --individual Color individual characters
-w, --words Color individual words
-m MULTIPLIER, --multiplier=MULTIPLIER
Multiplier for the flag size (-f)
-c FLAG, --colors=FLAG Color scheme to use (Default: trans)
-r, --random Use a random color scheme
--flags List all available flags
-h, --help Show this help
Notice how the foreground color changes based on the background color.
All images above include ALT text and you are encouraged to read it, if you find parts of them confusing, by using screen readers, hovering over them with your cursor or looking at the source.
You can pass a local ./data/colors.yaml
file at runtime to the BLAHAJ_COLORS_YAML
env var and BLÅHAJ will parse it. This can also be used to override the already defined flags.
(The custom file needs to follow the ./data/colors.yaml
format)
- Read the Code of Conduct
- Fork it ( https://github.com/GeopJr/BLAHAJ/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request