From 82a4415efdd8f3536885782ffe2b8e3378a04a63 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 21 Mar 2016 23:49:14 -0400 Subject: xsubpkg: add flag to only show main package Closes: #37 [via git-merge-pr] --- _xtools | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '_xtools') 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 } -- cgit 1.4.1