# This file is part of sfdk.bash-completion                -*- shell-script -*-

_sfdk_command_deploy()
{
    local -A options=(
        [--sdk]=
        [--manual]=
        [--ignore-debug]=
        [-n]=
        [--dry-run]=
        [--silent]=
        [--keepUserData]=
    )

    local non_option_idx=$(_sfdk_find_non_option $((_sfdk_command_idx + 1)) "$cword")
    if [[ $non_option_idx ]]; then
        # TODO complete engine command?
        return
    fi

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W "${!options[*]} --" -- "$cur"))
    fi
}

# ex: filetype=sh
