1 # bash completion for the Scrapy command-line tool
4 local cmd cur commands spiders
9 spiders=$(scrapy list 2>/dev/null) || spiders=""
10 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$spiders" -- "$cur"))
13 if [ $COMP_CWORD -eq 1 ]; then
14 commands="crawl deploy fetch genspider list parse queue runserver runspider settings shell startproject view"
15 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$commands" -- "$cmd"))
20 complete -F _scrapy_completion -o default scrapy