github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/bin/helpers/output.sh (about) 1 #!/bin/bash 2 3 # Colorful output 4 5 SUCCESS_COLOR='\033[0;32m' # green 6 WARNING_COLOR='\033[0;33m' # yellow 7 FAILURE_COLOR="\033[0;31m" # red 8 DEFAULT_COLOR="\033[0m" 9 10 print_success () { 11 echo -e "${SUCCESS_COLOR}$1${DEFAULT_COLOR}" 12 } 13 14 print_warning () { 15 echo -e "$WARNING_COLOR$1${DEFAULT_COLOR}" 16 } 17 18 print_error () { 19 echo -e "${FAILURE_COLOR}$1${DEFAULT_COLOR}" 20 }