_xbps: complete properties
This commit is contained in:
parent
741f8fbe04
commit
5cbfdd5c5c
35
data/_xbps
35
data/_xbps
@ -10,6 +10,39 @@ _xbps_common=(
|
|||||||
{-V,--version}'[Show XBPS version]'
|
{-V,--version}'[Show XBPS version]'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_xbps_properties=(
|
||||||
|
architecture
|
||||||
|
archive-compression-type
|
||||||
|
automatic-install
|
||||||
|
build-date
|
||||||
|
build-options
|
||||||
|
conf_files
|
||||||
|
conflicts
|
||||||
|
filename-sha256
|
||||||
|
filename-size
|
||||||
|
homepage
|
||||||
|
install-date
|
||||||
|
install-msg
|
||||||
|
install-script
|
||||||
|
installed_size
|
||||||
|
license
|
||||||
|
maintainer
|
||||||
|
metafile-sha256
|
||||||
|
packaged-with
|
||||||
|
pkgver
|
||||||
|
preserve
|
||||||
|
provides
|
||||||
|
remove-msg
|
||||||
|
remove-script
|
||||||
|
replaces
|
||||||
|
repository
|
||||||
|
shlib-provides
|
||||||
|
shlib-requires
|
||||||
|
short_desc
|
||||||
|
source-revisions
|
||||||
|
state
|
||||||
|
)
|
||||||
|
|
||||||
_xbps_all_packages() {
|
_xbps_all_packages() {
|
||||||
compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/')
|
compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/')
|
||||||
}
|
}
|
||||||
@ -91,7 +124,7 @@ _xbps_query() {
|
|||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
$_xbps_common \
|
$_xbps_common \
|
||||||
{-c,--cachedir=-}'[Full path to cachedir]:cache dir:_files -/' \
|
{-c,--cachedir=-}'[Full path to cachedir]:cache dir:_files -/' \
|
||||||
{-p,--property=-}'[Show properties]: ' \
|
{-p,--property=-}'[Show properties]:property:($_xbps_properties)' \
|
||||||
--regex'[Use Extended Regular Expressions to match]' \
|
--regex'[Use Extended Regular Expressions to match]' \
|
||||||
--fulldeptree'[Full dependency tree for -x/--deps]' \
|
--fulldeptree'[Full dependency tree for -x/--deps]' \
|
||||||
{-R,--repository}'[Enable repository mode]' \
|
{-R,--repository}'[Enable repository mode]' \
|
||||||
|
Loading…
Reference in New Issue
Block a user