summaryrefslogtreecommitdiffstats
path: root/completions/mailmanctl
blob: 3bbc2f241726790ef2f6a0b384b811a3b4cfd01d (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: filetype=sh