2014-09-01 21:12:36 +08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
#
|
|
|
|
# gulp-autocompletion-zsh
|
2015-10-06 01:44:00 +08:00
|
|
|
#
|
2014-09-01 21:12:36 +08:00
|
|
|
# Autocompletion for your gulp.js tasks
|
|
|
|
#
|
|
|
|
# Copyright(c) 2014 André König <andre.koenig@posteo.de>
|
|
|
|
# MIT Licensed
|
2015-10-06 01:44:00 +08:00
|
|
|
#
|
2014-09-01 21:12:36 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# André König
|
2019-05-08 02:02:41 +08:00
|
|
|
# GitHub: https://github.com/akoenig
|
2014-09-01 21:12:36 +08:00
|
|
|
# Twitter: https://twitter.com/caiifr
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Grabs all available tasks from the `gulpfile.js`
|
|
|
|
# in the current directory.
|
|
|
|
#
|
2019-04-09 05:14:00 +08:00
|
|
|
function _gulp_completion {
|
2015-12-15 19:14:41 +08:00
|
|
|
compls=$(gulp --tasks-simple 2>/dev/null)
|
2014-09-01 21:12:36 +08:00
|
|
|
|
2015-12-15 19:14:41 +08:00
|
|
|
completions=(${=compls})
|
2014-09-01 21:12:36 +08:00
|
|
|
compadd -- $completions
|
|
|
|
}
|
|
|
|
|
2019-04-09 05:14:00 +08:00
|
|
|
compdef _gulp_completion gulp
|