f54fdca50b68684843e2f811c59d8d7fc4885345
[genesis.git] / compass / ci / log.sh
1 #!/bin/bash
2 reset=`tput sgr0`
3 red=`tput setaf 1`
4 green=`tput setaf 2`
5 yellow=`tput setaf 3`
6
7 function log_info() {
8     echo -e "${green}$*${reset}"
9 }
10
11 function log_warn() {
12     echo -e "${yellow}$*${reset}"
13 }
14
15 function log_error() {
16     echo -e "${red}$*${reset}"
17 }
18
19 function log_progress() {
20     echo -en "${yellow}$*\r${reset}"
21 }
22