aboutsummaryrefslogtreecommitdiffstats
path: root/extras/bash_completion/mana
blob: 74370b215a4357505a7b15b0de0cf74156bed3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# mana(1) completion                                         -*- shell-script -*-

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

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -u "$cur" ) )
    else
        local opts=$( _parse_help "$1" )
        [[ $opts ]] || opts="user host proxy service log" # POSIX fallback
        COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
    fi
} &&
complete -F _mana mana

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