summaryrefslogtreecommitdiffstats
path: root/completions/mailmanctl
blob: b29487a4039e2e32804d60395370ef04a0c50bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# mailmanctl completion                                    -*- shell-script -*-

_comp_cmd_mailmanctl()
{
    local cur prev words cword comp_args
    _comp_initialize -- "$@" || return

    if [[ $cur == -* ]]; then
        _comp_compgen -- -W '--no-restart --run-as-user --stale-lock-cleanup
            --quiet --help'
    else
        _comp_compgen -- -W 'start stop restart reopen'
    fi

} &&
    complete -F _comp_cmd_mailmanctl mailmanctl

# ex: filetype=sh