Add completion for rev-upgrade subcommand
This commit is contained in:
parent
7b412ed1ba
commit
8d9cdfc589
|
@ -48,6 +48,8 @@ _port() {
|
||||||
'--show:Show which version is currently selected for the group (default if none given)'
|
'--show:Show which version is currently selected for the group (default if none given)'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
revupgrade_options=('--id-loadcmd-check:Run more checks against a special loadcommand in Mach-O binaries')
|
||||||
|
|
||||||
local cache_policy
|
local cache_policy
|
||||||
zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
|
zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
|
||||||
if [[ -z "$cache_policy" ]]; then
|
if [[ -z "$cache_policy" ]]; then
|
||||||
|
@ -115,6 +117,11 @@ _port_dispatch() {
|
||||||
outdated_packages=("${(f)$(port outdated | sed -e '1 d' -e 's/^\([[:graph:]]*\).*/\1/')}")
|
outdated_packages=("${(f)$(port outdated | sed -e '1 d' -e 's/^\([[:graph:]]*\).*/\1/')}")
|
||||||
_describe "Outdated ports" outdated_packages
|
_describe "Outdated ports" outdated_packages
|
||||||
;;
|
;;
|
||||||
|
rev-upgrade)
|
||||||
|
if (( CURRENT == 3 )); then
|
||||||
|
_describe 'Rev-upgrade options' revupgrade_options
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# 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