#compdef kanidm_ssh_authorizedkeys

autoload -U is-at-least

_kanidm_ssh_authorizedkeys() {
    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[@]}" : \
'-d[]' \
'--debug[]' \
'-v[]' \
'--version[]' \
'-h[Print help]' \
'--help[Print help]' \
'::account_id:_default' \
&& ret=0
}

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

if [ "$funcstack[1]" = "_kanidm_ssh_authorizedkeys" ]; then
    _kanidm_ssh_authorizedkeys "$@"
else
    compdef _kanidm_ssh_authorizedkeys kanidm_ssh_authorizedkeys
fi
