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
You can’t perform that action at this time.
0 commit comments