mirror of https://github.com/scrapy/scrapy.git
updated scrapy_bash_completion
This commit is contained in:
parent
e9cef3ae69
commit
c3e91ba73e
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue