# shellcheck shell=dash

___x_cmd_scoop___xproxy(){
    [ $# -gt 0 ]    ||  set - ls
    local op="$1";      shift

    local O=scoop
    case "$op" in
        ls|unuse|untry|run)
            ___x_cmd proxy wrap "$op"  "$@"   ;;

        use|try)
            ___x_cmd proxy wrap "$op"  "$@" || return $?
            scoop:info "Clean up the native proxy settting"
            ___x_cmd_scoop___bin config proxy ""           ;;

        -h|--help)
            ___x_cmd help -m scoop proxy      "$@"   ;;
    esac
}
