+confirm() {
+ if [ "$FORCE" == '-y' ]; then
+ true
+ else
+ read -r -p "$1 [y/N] " response < /dev/tty
+ if [[ $response =~ ^(yes|y|Y)$ ]]; then
+ true
+ else
+ false
+ fi
+ fi
+}
+
+prompt() {
+ read -r -p "$1 [y/N] " response < /dev/tty
+ if [[ $response =~ ^(yes|y|Y)$ ]]; then
+ true
+ else
+ false
+ fi
+}
+
+success() {
+ echo -e "$(tput setaf 2)$1$(tput sgr0)"
+}
+
+inform() {
+ echo -e "$(tput setaf 6)$1$(tput sgr0)"
+}
+
+warning() {
+ echo -e "$(tput setaf 1)$1$(tput sgr0)"
+}