mirror of https://github.com/scrapy/scrapy.git
Minor improvement to bash autocompletion
This commit is contained in:
parent
fd784cd131
commit
cf8a085f44
|
|
@ -10,8 +10,10 @@ _scrapy_completion() {
|
|||
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$spiders" -- "$cur"))
|
||||
;;
|
||||
*)
|
||||
commands="crawl fetch genspider list parse queue runserver runspider settings shell startproject view"
|
||||
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$commands" -- "$cmd"))
|
||||
if [ $COMP_CWORD -eq 1 ]; then
|
||||
commands="crawl fetch genspider list parse queue runserver runspider settings shell startproject view"
|
||||
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$commands" -- "$cmd"))
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue