From 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:19 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- completions/larch | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'completions/larch') diff --git a/completions/larch b/completions/larch index 7ed9ca2..0df7537 100644 --- a/completions/larch +++ b/completions/larch @@ -1,13 +1,13 @@ # larch(1) completion -*- shell-script -*- # by Alex Shinn -_larch() +_comp_cmd_larch() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return if [[ $cword -eq 1 || $prev == -* ]]; then - COMPREPLY=($(compgen -W ' \ + _comp_compgen -- -W ' \ my-id my-default-archive register-archive whereis-archive archives \ init-tree tree-root tree-version set-tree-version inventory \ tagging-method tree-lint missing-tags add delete \ @@ -29,11 +29,10 @@ _larch() touched-files-prereqs patch-set-web update-distributions \ distribution-name notify my-notifier mail-new-categories \ mail-new-branches mail-new-versions mail-new-revisions \ - notify-library notify-browser push-new-revisions sendmail-mailx' \ - "$cur")) + notify-library notify-browser push-new-revisions sendmail-mailx' fi } && - complete -F _larch -o default larch + complete -F _comp_cmd_larch -o default larch # ex: filetype=sh -- cgit v1.2.3