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

_check_db()
{
    local cur prev words cword
    _init_completion || return

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '--all --verbose --help' -- "$cur"))
    else
        _xfunc list_lists _mailman_lists
    fi

} &&
    complete -F _check_db check_db

# ex: filetype=sh