Skip to content

Commit e0317cc

Browse files
classabbyampDuncaen
authored andcommitted
data/_xbps: add xbps-uhelper getname, getversion to completions
1 parent 9056a63 commit e0317cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

data/_xbps

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ _xbps_uhelper() {
239239
actions)
240240
_values "actions" binpkgarch binpkgver cmpver digest fetch getpkgdepname \
241241
getpkgname getpkgrevision getpkgversion \
242-
pkgmatch version real-version arch getsystemdir
242+
pkgmatch version real-version arch getsystemdir getname getversion
243243
ret=0;;
244244
args)
245245
case $words[1] in
@@ -252,6 +252,8 @@ _xbps_uhelper() {
252252
getpkgname) _arguments '*:string: ' && ret=0;;
253253
getpkgrevision) _arguments '*:string: ' && ret=0;;
254254
getpkgversion) _arguments '*:string: ' && ret=0;;
255+
getname) _arguments '*:string: ' && ret=0;;
256+
getversion) _arguments '*:string: ' && ret=0;;
255257
pkgmatch) _arguments ':version: ' ':pattern: ' && ret=0;;
256258
real-version) _arguments ':package:_xbps_installed_packages' && ret=0;;
257259
version) _arguments ':package:_xbps_installed_packages' && ret=0;;

0 commit comments

Comments
 (0)