19 lines
482 B
Bash
19 lines
482 B
Bash
# mailmanctl completion -*- shell-script -*-
|
|
|
|
_mailmanctl()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
COMPREPLY=( $( compgen -W '--no-restart --run-as-user
|
|
--stale-lock-cleanup --quiet --help' -- "$cur" ) )
|
|
else
|
|
COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) )
|
|
fi
|
|
|
|
} &&
|
|
complete -F _mailmanctl mailmanctl
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|