Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/completion/zsh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-01-05 19:23:52 +0100
committerLevente Polyak <anthraxx@archlinux.org>2024-01-07 02:38:42 +0100
commitd0dc0e1a32d6ed9b166eca777f7fb7071c4c2df1 (patch)
tree02f06b909f89166532bbfac91a545b31bd219048 /contrib/completion/zsh
parent0e538cf4983f27548077c0a2a272ecd8deebacb1 (diff)
feat(search): add optional plain output formatting
This allows to run the search command without bats, which is not used in the default pretty output format. Component: pkgctl search Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'contrib/completion/zsh')
-rw-r--r--contrib/completion/zsh/_devtools.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/completion/zsh/_devtools.in b/contrib/completion/zsh/_devtools.in
index 120b47a..448fbed 100644
--- a/contrib/completion/zsh/_devtools.in
+++ b/contrib/completion/zsh/_devtools.in
@@ -9,6 +9,8 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-tags.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-repos.sh
# shellcheck source=src/lib/valid-inspect.sh
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-inspect.sh
+# shellcheck source=src/lib/valid-search.sh
+source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-search.sh
_binary_arch=${DEVTOOLS_VALID_ARCHES[*]:0:-1}
_colors=(never always auto)
@@ -140,8 +142,10 @@ _pkgctl_repo_web_args=(
)
_pkgctl_search_args=(
- '--json[Enable printing results in JSON]'
'--no-default-filter[Do not apply default filter (like -path:keys/pgp/*.asc)]'
+ '--json[Enable printing results in JSON]'
+ '(-F --format)'{-F,--format}"[Controls the formatting of the results]:format:($valid_search_output_format[*])"
+ '(-N --no-line-number)'{-N,--no-line-number}"[Don't show line numbers when formatting results]"
'(-h --help)'{-h,--help}'[Display usage]'
'1:query'
)