mirror of https://github.com/k3s-io/k3s
Add color-coding to kubemark scripts.
parent
1eb2acca99
commit
b538f18c0e
|
@ -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
|
Loading…
Reference in New Issue