mirror of https://github.com/kdabir/has.git
add grunt gulp brunch
This commit is contained in:
parent
8f0ffe8698
commit
0816c04c67
7
has
7
has
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue