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

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

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

} &&
complete -F _newlist newlist

# ex: ts=4 sw=4 et filetype=sh