completion: Update completion for new bash-it update

Also fix the update completion test
This commit is contained in:
Noah Gorny
2020-06-22 16:19:52 +03:00
parent 96295e92a5
commit 1bdcacf242
2 changed files with 8 additions and 3 deletions

View File

@@ -87,7 +87,12 @@ _bash-it-comp()
COMPREPLY=( $(compgen -W "${doctor_args}" -- ${cur}) )
return 0
;;
migrate | reload | search | update | version)
update)
local update_args="stable dev"
COMPREPLY=( $(compgen -W "${update_args}" -- ${cur}) )
return 0
;;
migrate | reload | search | version)
return 0
;;
enable | disable)