updated scrapy_bash_completion

This commit is contained in:
Pablo Hoffman 2012-10-12 20:02:03 -02:00
parent e9cef3ae69
commit c3e91ba73e
1 changed files with 2 additions and 2 deletions

View File

@ -5,13 +5,13 @@ _scrapy_completion() {
cmd=${COMP_WORDS[1]}
cur=${COMP_WORDS[2]}
case "$cmd" in
crawl|edit)
crawl|edit|check)
spiders=$(scrapy list 2>/dev/null) || spiders=""
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$spiders" -- "$cur"))
;;
*)
if [ $COMP_CWORD -eq 1 ]; then
commands="crawl deploy fetch genspider list parse queue runserver runspider settings shell startproject view"
commands="check crawl deploy edit fetch genspider list parse runspider server settings shell startproject version view"
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$commands" -- "$cmd"))
fi
;;