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/mailmanctl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'completions/mailmanctl') diff --git a/completions/mailmanctl b/completions/mailmanctl index 3bbc2f2..b29487a 100644 --- a/completions/mailmanctl +++ b/completions/mailmanctl @@ -1,18 +1,18 @@ # mailmanctl completion -*- shell-script -*- -_mailmanctl() +_comp_cmd_mailmanctl() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '--no-restart --run-as-user - --stale-lock-cleanup --quiet --help' -- "$cur")) + _comp_compgen -- -W '--no-restart --run-as-user --stale-lock-cleanup + --quiet --help' else - COMPREPLY=($(compgen -W 'start stop restart reopen' -- "$cur")) + _comp_compgen -- -W 'start stop restart reopen' fi } && - complete -F _mailmanctl mailmanctl + complete -F _comp_cmd_mailmanctl mailmanctl # ex: filetype=sh -- cgit v1.2.3