Re:Grunt and RequireJS are out, it's all about Gulp and Brow...
by mercurial on Monday February 03, 2014 @03:43AM
(#7169501)
Autocompletion of make targets in the shell.
[ Parent
| on HN ]
Re:Grunt and RequireJS are out, it's all about Gulp and Brow...
by chubot on Monday February 03, 2014 @11:23AM
(#7171478)
I wrote my own completion for that :) Here is the pattern I use:
run.sh
build() {
...
}
test() {
...
}
deploy() {
...
}
# This lets you do ./run.sh build foo bar at the command
# line. The autocomplete scans for functions in .sh files
# and fills them in as the first arg.
"$@"