diff options
author | Toyam Cox <Vaelatern@gmail.com> | 2016-03-21 23:49:14 -0400 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-03-22 15:00:48 +0100 |
commit | 82a4415efdd8f3536885782ffe2b8e3378a04a63 (patch) | |
tree | f267fef67ab9876422a62f9a1a460e985084c7df /_xtools | |
parent | 4deb083dedd36cd91009267a8607256af6ccbe69 (diff) | |
download | xtools-82a4415efdd8f3536885782ffe2b8e3378a04a63.tar.gz xtools-82a4415efdd8f3536885782ffe2b8e3378a04a63.tar.xz xtools-82a4415efdd8f3536885782ffe2b8e3378a04a63.zip |
xsubpkg: add flag to only show main package
Closes: #37 [via git-merge-pr]
Diffstat (limited to '_xtools')
-rw-r--r-- | _xtools | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/_xtools b/_xtools index 043a4fe..4c04c58 100644 --- a/_xtools +++ b/_xtools @@ -110,6 +110,12 @@ _xrevbump() { ':available templates:_xtools_all_packages' } +_xsubpkg() { + _arguments : \ + '-m[list master package]'\ + '*:package:_xbps_all_packages' +} + _xtools() { case "$service" in xbulk) _xbulk "$@";; @@ -134,7 +140,7 @@ _xtools() { xrecent) _xrecent "$@";; xrevbump) _xrevbump "$@";; xsrc) _xtool_one_template "$@";; - xsubpkg) _xtool_one_template "$@";; + xsubpkg) _xsubpkg "$@";; esac } |