#!/bin/bash

section_message () {

	case $1 in

		Required )
			echo -e "\n${RED}Required ${WHITE}$2:\n"
		;;

		Optional )
			echo -e "\n${MAGENTA}Optional ${WHITE}$2:\n"
		;;
	esac
	tput sgr0

}

start_message () {

	echo -e "\n${GREEN}BashStyle-NG${YELLOW} v${xVERSION} ${CYAN}${CODENAME}"
	tput sgr0

}

ok_message () {

	if [[ $2 != "" ]]; then
		echo -e "${WHITE}\t+ ${CYAN}$1${MAGENTA} >${GREEN} O.K.${SILVER} ( $2 )"
	else 	echo -e "${WHITE}\t+ ${CYAN}$1${MAGENTA} >${GREEN} O.K."
	fi
	tput sgr0
}

fail_message () {

	if [[ $1 == "m" ]]; then
		echo -e "${WHITE}\t+ ${CYAN}$2${MAGENTA} >${RED} !MISSING!"
	elif [[ $1 == "o" ]]; then
		echo -e "${WHITE}\t+ ${CYAN}$2${MAGENTA} >${RED} !OLDER THAN $3!"
	fi
	tput sgr0

}

warn_message () {

	echo -e "${WHITE}\t+ ${CYAN}$1${MAGENTA} >${YELLOW} Not Available"
	tput sgr0

}

maintainer_message () {

	echo -e "\n${RED}Maintainer Mode ${WHITE}/ ${GREEN}Disabled Checks\n"
	tput sgr0

}

end_message () {

	echo -e "\n${YELLOW}Prefix:${WHITE} $PREFIX\n"
	if [[ $ERR_MSG != "" ]]; then
		echo -e "${YELLOW}Notes:\
			\n${WHITE}${ERR_MSG}"
	fi
	tput sgr0

}
