~blainsmith/hare-clrfmt

clrfmt lets you use colorized outputs in terms of ANSI Escape Codes in Hare that has the same API as fmt
f1db20c5 — Carlos Une 3 months ago
printfln,errorfln: call fprintfln instead of fprintf
1ec895fd — Carlos Une 3 months ago
Update for current Hare
f8bd63f1 — iamthenoname 1 year, 2 months ago
Implement NO_COLOR detection

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~blainsmith/hare-clrfmt
read/write
git@git.sr.ht:~blainsmith/hare-clrfmt

You can also use your local clone with git send-email.

#hare-clrfmt

This package provides ANSI Escape Codes support for Hare. This was inspired by fatih/color for Go.

This works well with Hare's fmt and log modules. There is also logfmt which ties in nicely with log if you wanted colored structured logging.

#Installation

#From your distribution

The recommended name for this package is "hare-clrfmt". Look for this, or something similar, in your local package manager. This is the preferred way to install this package.

#System-wide installation

make install

#Vendoring

git subtree -P vendor/hare-clrfmt/ add https://git.sr.ht/~blainsmith/hare-clrfmt main