_port: complete more subcommands
Add completions for outdated, sync and selfupdate subcommands.
This commit is contained in:
parent
062e23c1bf
commit
e580a15f99
|
@ -181,6 +181,13 @@ _port_dispatch() {
|
||||||
_describe 'Rev-upgrade options' revupgrade_options
|
_describe 'Rev-upgrade options' revupgrade_options
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
outdated|sync)
|
||||||
|
# No need to complete anything more here.
|
||||||
|
return 0;
|
||||||
|
;;
|
||||||
|
selfupdate)
|
||||||
|
_all_labels 'Selfupdate options' '--nosync'
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# Cache the list of all ports.
|
# Cache the list of all ports.
|
||||||
if ( [[ ${+_port_available_packages} -eq 0 ]] || _cache_invalid PORT_AVAILABLE_PACKAGES ) &&
|
if ( [[ ${+_port_available_packages} -eq 0 ]] || _cache_invalid PORT_AVAILABLE_PACKAGES ) &&
|
||||||
|
|
Loading…
Reference in New Issue