Added completion for gulp

This commit is contained in:
Yohan Tambè 2015-07-30 12:16:42 +02:00
parent ea729a975b
commit 15da9565d7
1 changed files with 24 additions and 0 deletions

24
src/_gulp Normal file
View File

@ -0,0 +1,24 @@
#compdef gulp
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Find tasks for gulp
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Yohan Tambè (https://github.com/cronos87)
#
# ------------------------------------------------------------------------------
_gulp_get_command_list () {
cat gulpfile.js | grep "gulp.task" | grep -o "'[a-z:]*'" | sed "s/\'//g"
}
_gulp () {
compadd `_gulp_get_command_list`
}
compdef _gulp gulp