nix-flake-outputs-size/scripts/utils.sh
Jalil David Salamé Messina dd7cf9e09e
Some checks failed
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Failing after 4s
/ report-download-check (push) Has been skipped
refactor: try to condense the action in fewer steps
This should make it easier to debug/maintain.
2025-07-11 19:01:01 +02:00

26 lines
244 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"
}
panic() {
error "$@"
exit 1
}
group() {
echo "::group::$1"
}
endgroup() {
echo '::endgroup::'
}