
# This file is a result of "register-python-argcomplete sf"
# It's copied here, because register-python-argcomplete command probably won't be available
# For more details see: https://argcomplete.readthedocs.org

# set -euo pipefail  # with this line it's not possible to log in after installation, because it goes to /etc/bash_completion.d/sf

# no-license-check

_python_argcomplete() {
    local cmd=$1
    local IFS=$(echo -e '\v')
    COMPREPLY=( $(_ARGCOMPLETE_IFS="$IFS" COMP_LINE="$COMP_LINE" COMP_POINT="$COMP_POINT" \
        _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" _ARGCOMPLETE=1 ${cmd} 8>&1 9>&2 1>/dev/null 2>&1) )
    if [[ $? != 0 ]]; then
        unset COMPREPLY
    fi
}

complete -o nospace -o default -F _python_argcomplete "sf" "sfdu"
