From 8d9cdfc58911ffc0d8b7591d6e47976d47398f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljaz=CC=8C=20=22g5pw=22=20Srebrnic=CC=8C?= Date: Tue, 2 Apr 2013 21:56:07 +0200 Subject: [PATCH] Add completion for rev-upgrade subcommand --- src/_port | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/_port b/src/_port index 859d21a..173eb4f 100644 --- a/src/_port +++ b/src/_port @@ -48,6 +48,8 @@ _port() { '--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 zstyle -s ":completion:${curcontext}:" cache-policy cache_policy if [[ -z "$cache_policy" ]]; then @@ -115,6 +117,11 @@ _port_dispatch() { outdated_packages=("${(f)$(port outdated | sed -e '1 d' -e 's/^\([[:graph:]]*\).*/\1/')}") _describe "Outdated ports" outdated_packages ;; + rev-upgrade) + if (( CURRENT == 3 )); then + _describe 'Rev-upgrade options' revupgrade_options + fi + ;; *) # Cache the list of all ports. if ( [[ ${+_port_available_packages} -eq 0 ]] || _cache_invalid PORT_AVAILABLE_PACKAGES ) &&