_port: complete more subcommands

Add completions for outdated, sync and selfupdate subcommands.
This commit is contained in:
Aljaž "g5pw" Srebrnič 2014-06-26 17:50:10 +02:00
parent 062e23c1bf
commit e580a15f99
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,13 @@ _port_dispatch() {
_describe 'Rev-upgrade options' revupgrade_options
fi
;;
outdated|sync)
# No need to complete anything more here.
return 0;
;;
selfupdate)
_all_labels 'Selfupdate options' '--nosync'
;;
*)
# Cache the list of all ports.
if ( [[ ${+_port_available_packages} -eq 0 ]] || _cache_invalid PORT_AVAILABLE_PACKAGES ) &&