#compdef kanidm_ssh_authorizedkeys_direct

autoload -U is-at-least

_kanidm_ssh_authorizedkeys_direct() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'-H+[]:ADDR:_default' \
'--url=[]:ADDR:_default' \
'-D+[]:USERNAME:_default' \
'--name=[]:USERNAME:_default' \
'-C+[]:CA_PATH:_files' \
'--ca=[]:CA_PATH:_files' \
'-d[]' \
'--debug[]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
':account_id:_default' \
&& ret=0
}

(( $+functions[_kanidm_ssh_authorizedkeys_direct_commands] )) ||
_kanidm_ssh_authorizedkeys_direct_commands() {
    local commands; commands=()
    _describe -t commands 'kanidm_ssh_authorizedkeys_direct commands' commands "$@"
}

if [ "$funcstack[1]" = "_kanidm_ssh_authorizedkeys_direct" ]; then
    _kanidm_ssh_authorizedkeys_direct "$@"
else
    compdef _kanidm_ssh_authorizedkeys_direct kanidm_ssh_authorizedkeys_direct
fi
