#!/bin/sh

# shellcheck disable=SC2034

set -e

black=0
red=1
green=2
yellow=3
blue=4
magenta=5
cyan=6
white=7

# color=${!1}
color=$(eval "echo \"\$$1\"")
if [ -n "${color}" ]; then
  shift
  # shellcheck disable=SC2312
  echo "$(tput bold)$(tput setaf "${color}")$*$(tput sgr0)"
fi
