add grunt gulp brunch

This commit is contained in:
Kunal Dabir 2017-10-14 12:56:16 +05:30
parent 8f0ffe8698
commit 0816c04c67
1 changed files with 7 additions and 0 deletions

7
has
View File

@ -72,6 +72,7 @@ __detect(){
jq|ag|brew) __dynamic_detect--version ${command} ;;
node|npm|yarn) __dynamic_detect--version ${command} ;;
grunt|brunch) __dynamic_detect--version ${command} ;;
ruby|gem|rake|bundle) __dynamic_detect--version ${command} ;;
python|python3) __dynamic_detect--version ${command} ;;
perl|php) __dynamic_detect--version ${command} ;;
@ -90,6 +91,12 @@ __detect(){
status=$?
;;
## TODO cleanup, currently need to add extra space in regex, otherwise the time gets selected
gulp)
version=$(gulp --version 2>&1| egrep -o " $REGEX_SIMPLE_VERSION" | head -1)
status=$?
;;
## ab uses -V flag
ab)
version=$(ab -V 2>&1 | egrep -o "$REGEX_SIMPLE_VERSION" | head -1)