Add color-coding to kubemark scripts.

pull/564/head
Bob Killen 2019-02-04 17:00:03 -06:00
parent 1eb2acca99
commit b538f18c0e
No known key found for this signature in database
GPG Key ID: 03FB8A8615239E6D
1 changed files with 17 additions and 0 deletions

View File

@ -74,3 +74,20 @@ function copy-files() {
function delete-master-instance-and-resources {
echo "Deleting master instance and its allocated resources" 1>&2
}
# Common colors used throughout the kubemark scripts
if [[ -z "${color_start-}" ]]; then
declare -r color_start="\033["
# shellcheck disable=SC2034
declare -r color_red="${color_start}0;31m"
# shellcheck disable=SC2034
declare -r color_yellow="${color_start}0;33m"
# shellcheck disable=SC2034
declare -r color_green="${color_start}0;32m"
# shellcheck disable=SC2034
declare -r color_blue="${color_start}1;34m"
# shellcheck disable=SC2034
declare -r color_cyan="${color_start}1;36m"
# shellcheck disable=SC2034
declare -r color_norm="${color_start}0m"
fi