File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,13 +19,10 @@ set -eu
1919
2020# ------------------------------------------------------------------------------
2121
22- # @formatter:off
23- info () { [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[36m[INFO] %s\033[0m\n" " ${1} " || printf " [INFO] %s\n" " ${1} " ; }
22+ info () { printf " ==> %s\n" " ${1} " ; }
2423note () { printf " %s\n" " ${1} " ; }
25- task () { _TASK_START=$( date +%s) ; [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[34m[TASK] %s\033[0m\n" " ${1} " || printf " [TASK] %s\n" " ${1} " ; }
26- pass () { _d=" " ; [ -n " ${_TASK_START:- } " ] && _d=" ($(( $(date +% s) - _TASK_START)) s)" && unset _TASK_START; [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[32m[ OK ] %s%s\033[0m\n" " ${1} " " ${_d} " || printf " [ OK ] %s%s\n" " ${1} " " ${_d} " ; }
27- fail () { [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[31m[FAIL] %s\033[0m\n" " ${1} " || printf " [FAIL] %s\n" " ${1} " ; }
28- # @formatter:on
24+ task () { printf " > %s\n" " ${1} " ; }
25+ pass () { printf " < %s\n" " ${1} " ; }
2926
3027drush () { ./vendor/bin/drush -y " $@ " ; }
3128
Original file line number Diff line number Diff line change @@ -40,11 +40,10 @@ VORTEX_DOWNLOAD_DB2_FILE="${VORTEX_DOWNLOAD_DB2_FILE:-db2.sql}"
4040# ------------------------------------------------------------------------------
4141
4242# @formatter:off
43- info () { [ " ${TERM :- } " != " dumb " ] && tput colors > /dev/null 2>&1 && printf " \033[36m[INFO] %s\033[0m\n " " ${1} " || printf " [INFO] %s\n" " ${1} " ; }
43+ info () { printf " ==> %s\n" " ${1} " ; }
4444note () { printf " %s\n" " ${1} " ; }
45- task () { _TASK_START=$( date +%s) ; [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[34m[TASK] %s\033[0m\n" " ${1} " || printf " [TASK] %s\n" " ${1} " ; }
46- pass () { _d=" " ; [ -n " ${_TASK_START:- } " ] && _d=" ($(( $(date +% s) - _TASK_START)) s)" && unset _TASK_START; [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[32m[ OK ] %s%s\033[0m\n" " ${1} " " ${_d} " || printf " [ OK ] %s%s\n" " ${1} " " ${_d} " ; }
47- fail () { [ " ${TERM:- } " != " dumb" ] && tput colors > /dev/null 2>&1 && printf " \033[31m[FAIL] %s\033[0m\n" " ${1} " || printf " [FAIL] %s\n" " ${1} " ; }
45+ task () { printf " > %s\n" " ${1} " ; }
46+ pass () { printf " < %s\n" " ${1} " ; }
4847# @formatter:on
4948
5049drush () { ./vendor/bin/drush -y " $@ " ; }
You can’t perform that action at this time.
0 commit comments