Skip to content

Commit

Permalink
updated scrapy_bash_completion
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoffman committed Oct 12, 2012
1 parent e9cef3a commit c3e91ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/scrapy_bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit c3e91ba

Please sign in to comment.