From e0317cc6d70b52eb9eaf66a194d1118c975b7bf4 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 11 Feb 2023 13:18:49 -0500 Subject: [PATCH] data/_xbps: add xbps-uhelper getname, getversion to completions --- data/_xbps | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/_xbps b/data/_xbps index 5dad95c7..31587571 100644 --- a/data/_xbps +++ b/data/_xbps @@ -239,7 +239,7 @@ _xbps_uhelper() { actions) _values "actions" binpkgarch binpkgver cmpver digest fetch getpkgdepname \ getpkgname getpkgrevision getpkgversion \ - pkgmatch version real-version arch getsystemdir + pkgmatch version real-version arch getsystemdir getname getversion ret=0;; args) case $words[1] in @@ -252,6 +252,8 @@ _xbps_uhelper() { getpkgname) _arguments '*:string: ' && ret=0;; getpkgrevision) _arguments '*:string: ' && ret=0;; getpkgversion) _arguments '*:string: ' && ret=0;; + getname) _arguments '*:string: ' && ret=0;; + getversion) _arguments '*:string: ' && ret=0;; pkgmatch) _arguments ':version: ' ':pattern: ' && ret=0;; real-version) _arguments ':package:_xbps_installed_packages' && ret=0;; version) _arguments ':package:_xbps_installed_packages' && ret=0;;