mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
37 lines
770 B
Bash
37 lines
770 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
readonly NORMAL=$(printf '\033[0m')
|
||
|
readonly BOLD=$(printf '\033[1m')
|
||
|
readonly faint=$(printf '\033[2m')
|
||
|
readonly UNDERLINE=$(printf '\033[4m')
|
||
|
readonly NEGATIVE=$(printf '\033[7m')
|
||
|
readonly RED=$(printf '\033[31m')
|
||
|
readonly GREEN=$(printf '\033[32m')
|
||
|
readonly ORANGE=$(printf '\033[33m')
|
||
|
readonly BLUE=$(printf '\033[34m')
|
||
|
readonly YELLOW=$(printf '\033[93m')
|
||
|
readonly WHITE=$(printf '\033[39m')
|
||
|
|
||
|
function success()
|
||
|
{
|
||
|
local msg=${1}
|
||
|
echo "[${BOLD}${GREEN} OK ${NORMAL}] ${msg}"
|
||
|
}
|
||
|
|
||
|
function info()
|
||
|
{
|
||
|
local msg=${1}
|
||
|
echo "[${BOLD}${BLUE}INFO${NORMAL}] ${msg}"
|
||
|
}
|
||
|
|
||
|
function warn()
|
||
|
{
|
||
|
local msg=${1}
|
||
|
echo "[${BOLD}${ORANGE}WARN${NORMAL}] ${msg}" 2>&1
|
||
|
}
|
||
|
|
||
|
function error()
|
||
|
{
|
||
|
local msg=${1}
|
||
|
echo "[${BOLD}${RED}FAIL${NORMAL}] ${msg}" 2>&1
|
||
|
}
|