aboutsummaryrefslogtreecommitdiffstats
path: root/src/_port
diff options
context:
space:
mode:
authorAljaž "g5pw" Srebrnič <a2piratesoft@gmail.com>2014-02-19 11:23:35 +0100
committerAljaž "g5pw" Srebrnič <a2piratesoft@gmail.com>2014-06-26 17:57:59 +0200
commit0b791a2f50da09c4d5f634bd48c41a9cc90755fa (patch)
treead927ab16be6df8be641e550dadb3b9115f16393 /src/_port
parentBetter port upgrade completion (diff)
downloadzsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar.gz
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar.bz2
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar.lz
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar.xz
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.tar.zst
zsh-completions-0b791a2f50da09c4d5f634bd48c41a9cc90755fa.zip
Add description to each port target
Also, remove targets used only in interactive mode, like 'exit' or 'cd'
Diffstat (limited to 'src/_port')
-rw-r--r--src/_port79
1 files changed, 69 insertions, 10 deletions
diff --git a/src/_port b/src/_port
index e986b60..03a4895 100644
--- a/src/_port
+++ b/src/_port
@@ -25,15 +25,74 @@ _port() {
port_prefix=$(which port | sed 's|/bin/port||')
- actions=( activate archive archivefetch build cat cd
- checksum clean configure contents deactivate dependents deps
- destroot dir distcheck distfiles dmg dpkg echo edit exit
- extract fetch file gohome help info install installed lint list
- livecheck load location log logfile mdmg mirror mpkg notes
- outdated patch pkg platform portpkg provides quit rdependents
- rdeps rev-upgrade rpm search select selfupdate setrequested space
- srpm submit sync test unarchive uninstall unload unsetrequested
- upgrade url usage variants version work )
+ actions=(
+ 'activate\:Activate\ the\ given\ ports'
+ 'archive\:Archive\ the\ given\ ports,\ i.e.\ install\ the\ port\ image\ but\ do\ not\ activate'
+ 'archivefetch\:Fetch\ archive\ for\ the\ given\ ports'
+ 'build\:Build\ the\ given\ ports'
+ 'cat\:Writes\ the\ Portfiles\ of\ the\ given\ ports\ to\ stdout'
+ 'checksum\:Compares\ the\ checksums\ for\ the\ downloaded\ files\ of\ the\ given\ ports'
+ 'clean\:Removes\ files\ associated\ with\ the\ given\ ports'
+ 'configure\:Configure\ the\ given\ ports'
+ 'contents\:\Returns\ a\ list\ of\ files\ installed\ by\ given\ ports'
+ 'deactivate\:Deactivates\ the\ given\ ports'
+ 'dependents\:Returns\ a\ list\ of\ installed\ dependents\ for\ each\ of\ the\ given\ ports'
+ 'deps\:Display\ a\ dependency\ listing\ for\ the\ given\ ports'
+ 'destroot\:Destroot\ the\ given\ ports'
+ 'dir\:Returns\ the\ directories\ of\ the\ given\ ports'
+ 'distcheck\:Checks\ if\ the\ given\ ports\ can\ be\ fetched\ from\ all\ of\ its\ master_sites'
+ 'distfiles\:Returns\ a\ list\ of\ distfiles\ for\ the\ given\ port'
+ 'dmg\:Creates\ a\ dmg\ for\ each\ of\ the\ given\ ports'
+ 'dpkg\:Creates\ a\ dpkg\ for\ each\ of\ the\ given\ ports'
+ 'echo\:Returns\ the\ list\ of\ ports\ the\ argument\ expands\ to'
+ 'edit\:Edit\ given\ ports'
+ 'extract\:Extract\ the\ downloaded\ files\ of\ the\ given\ ports'
+ 'fetch\:Downloaded\ distfiles\ for\ the\ given\ ports'
+ 'file\:Returns\ the\ path\ to\ the\ Portfile\ for\ each\ of\ the\ given\ ports'
+ 'gohome\:Opens\ the\ homepages\ of\ the\ given\ ports\ in\ your\ browser'
+ 'help\:Displays\ short\ help\ texts\ for\ the\ given\ actions'
+ 'info\:Returns\ information\ about\ the\ given\ ports '
+ 'install\:Installs\ the\ given\ ports'
+ 'installed\:List\ installed\ versions\ of\ the\ given\ port,\ or\ all\ installed\ ports\ if\ no\ port\ is\ given'
+ 'lint\:Checks\ if\ the\ Portfile\ is\ lint-free\ for\ each\ of\ the\ given\ ports'
+ 'list\:List\ the\ available\ version\ for\ each\ of\ the\ given\ ports'
+ 'livecheck\:Checks\ if\ a\ new\ version\ of\ the\ software\ is\ available'
+ 'load\:Interface\ to\ launchctl(1)\ for\ ports\ providing\ startup\ items'
+ 'location\:Returns\ the\ install\ location\ for\ each\ of\ the\ given\ ports'
+ 'log\:Shows\ main\ log\ for\ given\ ports'
+ 'logfile\:Returns\ the\ log\ file\ path\ for\ each\ of\ the\ given\ ports'
+ 'mdmg\:Creates\ a\ dmg\ containing\ an\ mpkg\ for\ each\ of\ the\ given\ ports\ and\ their\ dependencies'
+ 'mirror\:Fetches\ distfiles\ for\ the\ given\ ports'
+ 'mpkg\:Creates\ an\ mpkg\ for\ each\ of\ the\ given\ ports\ and\ their\ dependencies'
+ 'notes\:Displays\ informational\ notes\ for\ each\ of\ the\ given\ ports'
+ 'outdated\:Returns\ a\ list\ of\ outdated\ ports'
+ 'patch\:Applies\ patches\ to\ each\ of\ the\ given\ ports'
+ 'pkg\:Creates\ a\ pkg\ for\ each\ of\ the\ given\ ports'
+ 'platform\:Returns\ the\ current\ platform\ that\ port\ is\ running\ on'
+ 'provides\:Return\ which\ port\ provides\ each\ of\ the\ files\ given'
+ 'rdependents\:Recursive\ version\ of\ dependents'
+ 'rdeps\:Display\ a\ recursive\ dependency\ listing\ for\ the\ given\ ports'
+ 'rev-upgrade\:Scan\ for\ broken\ binaries\ in\ the\ installed\ ports\ and\ rebuild\ them\ as\ needed'
+ 'rpm\:Creates\ a\ rpm\ for\ each\ of\ the\ given\ ports'
+ 'search\:Search\ for\ a\ port'
+ 'select\:Select\ between\ multiple\ versions\ of\ a\ versioned\ port'
+ 'selfupdate\:Upgrade\ MacPorts\ itself\ and\ run\ the\ sync\ target'
+ 'setrequested\:Marks\ each\ of\ the\ given\ ports\ as\ requested'
+ 'space\:Show\ the\ disk\ space\ used\ by\ the\ given\ ports'
+ 'srpm\:Creates\ a\ srpm\ for\ each\ of\ the\ given\ ports'
+ 'sync\:Synchronize\ the\ set\ of\ Portfiles'
+ 'test\:Run\ tests\ on\ each\ of\ the\ given\ ports'
+ 'unarchive\:Unarchive\ the\ destroot\ of\ the\ given\ ports\ from\ installed\ images'
+ 'uninstall\:Uninstall\ the\ given\ ports'
+ 'unload\:Interface\ to\ launchctl(1)\ for\ ports\ providing\ startup\ items'
+ 'unsetrequested\:Marks\ each\ of\ the\ given\ ports\ as\ unrequested'
+ 'upgrade\:Upgrades\ the\ given\ ports\ to\ the\ latest\ version'
+ 'url\:Returns\ the\ URL\ for\ each\ of\ the\ given\ ports'
+ 'usage\:Returns\ basic\ usage\ of\ the\ port\ command'
+ 'variants\:Returns\ a\ list\ of\ variants\ provided\ by\ the\ given\ ports,\ with\ descriptions\ if\ present'
+ 'version\:Returns\ the\ version\ of\ MacPorts'
+ 'work\:Returns\ the\ path\ to\ the\ work\ directory\ for\ each\ of\ the\ given\ ports'
+ )
pseudo_common=(all current active inactive actinact installed uninstalled outdated
obsolete requested unrequested leaves)
@@ -81,7 +140,7 @@ _port() {
'-p[Despite any errors encountered, proceed to process multiple ports and commands.]' \
'-y[Perform a dry run.]' \
'-t[Enable trace mode debug facilities on platforms that support it (Mac OS X).]' \
- "1:Port actions:($actions)" \
+ "1:Port actions:(($actions))" \
'*:extra:->extra' \
&& return 0