nix-flake-outputs-size/scripts/utils.sh
Jalil David Salamé Messina 5b70d89c71
Some checks failed
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Failing after 4s
/ report-download-check (push) Has been skipped
refactor: move scripts to scripts folder
This is a bit tidier.
2025-07-10 20:38:44 +02:00

21 lines
209 B
Bash
Executable file

#!/bin/sh
log() {
echo "$@" >&2
}
warn() {
log "\e[0;33m[ERROR]:" "$@" "\e[0m"
}
error() {
log "\e[0;31m[WARN]:" "$@" "\e[0m"
}
group() {
echo "::group::$1"
}
endgroup() {
echo '::endgroup::'
}