summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_baz
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-07-09 00:23:52 +0200
committerOliver Kiddle <opk@zsh.org>2021-07-09 00:23:52 +0200
commite6fdd35a83881a957ac206b4e128886d07f37c71 (patch)
tree3b5c1128104ee38544c89e10329be417f057bb78 /Completion/Unix/Command/_baz
parentbffe543142978b036621291dcfe08771ad6b4bda (diff)
downloadzsh-e6fdd35a83881a957ac206b4e128886d07f37c71.tar.gz
zsh-e6fdd35a83881a957ac206b4e128886d07f37c71.zip
49150: consistently use singular form for headings on completion match groups
Diffstat (limited to 'Completion/Unix/Command/_baz')
-rw-r--r--Completion/Unix/Command/_baz22
1 files changed, 11 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_baz b/Completion/Unix/Command/_baz
index 6787f41e2..4dfcdf882 100644
--- a/Completion/Unix/Command/_baz
+++ b/Completion/Unix/Command/_baz
@@ -38,8 +38,8 @@ _baz_revisions () { _arch_namespace baz 4 "$argv[@]" }
(( $+functions[_baz_local_revisions] )) ||
_baz_local_revisions () {
local expl1 expl2 tree_version=`$BAZ tree-version`
- _description -V applied-patches expl1 "patches from this version"
- _description -V other-patches expl2 "patches from other versions"
+ _description -V applied-patches expl1 "patch from this version"
+ _description -V other-patches expl2 "patch from other versions"
compadd "$expl1[@]" `$BAZ logs`
compadd "$expl2[@]" `$BAZ logs --full $($BAZ log-versions | grep -v $tree_version)`
# This is incredibly slow.
@@ -82,7 +82,7 @@ _baz_limit () { #presently only does push-mirror style limits
if [[ $PREFIX != *--* ]]; then
_description -V categories expl "categories in $archive"
- compadd -q -S -- "$expl[@]" `$BAZ categories $archive`
+ compadd -q -S -- "$expl[@]" `$BAZ category $archive`
else
_baz_namespace_branches 3
fi
@@ -98,7 +98,7 @@ _baz_tree_or_rev () {
_baz_libraries () {
local libraries expl
libraries=($(_call_program baz $BAZ my-revision-library))
- _description -V libraries expl "revision libraries"
+ _description -V libraries expl "revision library"
compadd "$expl[@]" -a libraries
}
@@ -115,7 +115,7 @@ _baz_my_revision_library () {
_baz_log_versions () {
local logs expl
logs=($(_call_program baz $BAZ log-versions))
- _description -V versions expl "log versions"
+ _description -V versions expl "log version"
compadd "$expl[@]" -a logs
}
@@ -238,12 +238,12 @@ methods=(
cmd_tagging_method=($cmd_id_tagging_method)
local cmd_add cmd_add_id cmd_add_tag
-cmd_add=('*:files to add:_files')
+cmd_add=('*:file to add:_files')
cmd_add_id=($cmd_add)
cmd_add_tag=($cmd_add)
local cmd_delete cmd_delete_id cmd_delete_tag
-cmd_delete=('*:files to delete:_files')
+cmd_delete=('*:file to delete:_files')
cmd_delete_id=($cmd_delete)
cmd_delete_tag=($cmd_delete)
@@ -272,7 +272,7 @@ cmd_changeset=(
':ORIG:_files -/'
':MOD:_files -/'
':DEST:_files -/'
- '*:files:_files'
+ '*:file:_files'
)
cmd_mkpatch=("$cmd_changeset[@]")
@@ -288,7 +288,7 @@ local cmd_make_archive
cmd_make_archive=('::name:' ':location:_files -/')
local cmd_archive_setup
-cmd_archive_setup=('*:versions:_baz_branches --trailing-dashes')
+cmd_archive_setup=('*:version:_baz_branches --trailing-dashes')
local cmd_make_category
cmd_make_category=(':category:_baz_archives -S /')
@@ -304,7 +304,7 @@ cmd_import=('::version:_baz_versions')
cmd_imprev=($cmd_import)
local cmd_commit cmd_cmtrev
-cmd_commit=('*:files:_files')
+cmd_commit=('*:file:_files')
cmd_cmtrev=($cmd_commit)
local cmd_get cmd_getrev
@@ -573,7 +573,7 @@ _baz_main () {
local -U cmds
help=(${(f)"$($BAZ help)"})
cmds=(${${${${(M)help:#* :*}/ #: #/:}%% ##}## #})
- arguments=(':commands:(($cmds))')
+ arguments=(':command:(($cmds))')
fi
_arguments -S -A '-*' \
{"${hide_short}(: -)-V",'(: -)--version'}'[display version]' \