# shellcheck disable=SC2034
# common stuff
red="$(tput setaf 1)"
green="$(tput setaf 2)"
cyan="$(tput setaf 6)"
bold="$(tput bold)"
underline="$(tput sgr 0 1)"
no_color="$(tput sgr0)"

err() { printf '%b\n' "${underline}${red}$1${no_color}\n"; }
# command -v cwebp >/dev/null 2>&1 || {
#   err "Webp not installed: brew install webp"
#   exit 1
# }

log() { printf '%s\n' "$*"; }
error() { log "ERROR: $*" >&2; }
fatal() {
  error "$@"
  exit 1
}
usage_fatal() {
  fatal "$*"
  usage >&2
  exit 1
}
