summaryrefslogtreecommitdiff
path: root/completions/mailmanctl
blob: 4a49668f61fe350c888c429fb778d87973b9bddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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