# vim: ft=sh:et:sw=2:noml:
# pretty print methods.
print_info() {
  [ -n "${NO_STDOUT+x}" ] \
    || printf "${COLOR_RESET-}[${COLOR_BGREEN-}INFO${COLOR_RESET-}] %s\n" "${@-}"
}
print_warn() {
  [ -n "${NO_STDERR+x}" ] \
    || printf "${COLOR_RESET-}[${COLOR_BYELLOW-}WARN${COLOR_RESET-}] %s\n" "${@-}" >&2
}
print_error() {
  [ -n "${NO_STDERR+x}" ] \
    || printf "${COLOR_RESET-}[${COLOR_BRED-}ERROR${COLOR_RESET-}] %s\n" "${@-}" >&2
}
print_list() {
  [ -n "${NO_STDOUT+x}" ] \
    || printf "${COLOR_RESET-} ${COLOR_BCYAN-}*${COLOR_RESET-} %s\n" "${@-}"
}
