5 # we cache the list of ports
6 # we shall use some cache policy to avoid problems with new ports
7 if (( ! $+portlist )); then
8 portlist=($(port echo all; echo "all current active inactive installed uninstalled outdated"))
60 '-v[verbose mode (generate verbose messages)]' \
61 '-d[debug mode (generate debugging messages)]' \
62 '-q[quiet mode (suppress messages)]' \
63 '-D[specify portdir]' \
64 '-k[keep mode (do not autoclean after install)]' \
65 '-n[dont follow dependencies in upgrade (only for upgrading)]' \
66 '-a[upgrade all installed ports (only for upgrading)]' \
67 '-u[uninstall non-active ports when upgrading and uninstalling]' \
68 '-f[force mode (ignore state file)]' \
69 '-s[source-only mode]' \
70 '-b[binary-only mode]' \
71 '-o[honor state files older than Portfile]' \
72 '*::command:->command' \
77 if ((CURRENT == 1)); then
87 _describe -t commands 'port commands' subcmds
90 _describe -t commands 'available ports' portlist