#!/usr/bin/env bashsuccess(){echo-e"\e[1;32m$1\e[0m"}info(){echo-e"\e[1;34m$1\e[0m"}warn(){echo-e"\e[1;33m$1\e[0m"}error(){echo-e"\e[1;31m$1\e[0m"}ask(){whiletrue;doread-p"→ $1 (y/n) ? "answercase${answer}in[Yy]*)return0;;[Nn]*)return1;;*)error"Please answer y/Y or n/N";;esacdone}info"Program started."warn"Prepare for the prompt"ifask"Are you sure";thensuccess"Yes, I am sure!"elseerror"No, I am not sure!"fiinfo"Program completed."error"You are going to offline mode!"