| _x.py() { |
| local i cur prev opts cmd |
| COMPREPLY=() |
| cur="${COMP_WORDS[COMP_CWORD]}" |
| prev="${COMP_WORDS[COMP_CWORD-1]}" |
| cmd="" |
| opts="" |
| |
| for i in ${COMP_WORDS[@]} |
| do |
| case "${cmd},${i}" in |
| ",$1") |
| cmd="x.py" |
| ;; |
| x.py,bench) |
| cmd="x.py__bench" |
| ;; |
| x.py,build) |
| cmd="x.py__build" |
| ;; |
| x.py,check) |
| cmd="x.py__check" |
| ;; |
| x.py,clean) |
| cmd="x.py__clean" |
| ;; |
| x.py,clippy) |
| cmd="x.py__clippy" |
| ;; |
| x.py,dist) |
| cmd="x.py__dist" |
| ;; |
| x.py,doc) |
| cmd="x.py__doc" |
| ;; |
| x.py,fix) |
| cmd="x.py__fix" |
| ;; |
| x.py,fmt) |
| cmd="x.py__fmt" |
| ;; |
| x.py,install) |
| cmd="x.py__install" |
| ;; |
| x.py,miri) |
| cmd="x.py__miri" |
| ;; |
| x.py,perf) |
| cmd="x.py__perf" |
| ;; |
| x.py,run) |
| cmd="x.py__run" |
| ;; |
| x.py,setup) |
| cmd="x.py__setup" |
| ;; |
| x.py,suggest) |
| cmd="x.py__suggest" |
| ;; |
| x.py,test) |
| cmd="x.py__test" |
| ;; |
| x.py,vendor) |
| cmd="x.py__vendor" |
| ;; |
| *) |
| ;; |
| esac |
| done |
| |
| case "${cmd}" in |
| x.py) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]... build check clippy fix fmt doc test miri bench clean dist install run setup suggest vendor perf" |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__bench) |
| opts="-v -i -j -h --test-args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --test-args) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__build) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__check) |
| opts="-v -i -j -h --all-targets --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__clean) |
| opts="-v -i -j -h --all --stage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --stage) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__clippy) |
| opts="-A -D -W -F -v -i -j -h --fix --allow-dirty --allow-staged --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| -A) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| -D) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| -W) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| -F) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__dist) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__doc) |
| opts="-v -i -j -h --open --json --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__fix) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__fmt) |
| opts="-v -i -j -h --check --all --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__install) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__miri) |
| opts="-v -i -j -h --no-fail-fast --test-args --no-doc --doc --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --test-args) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__perf) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__run) |
| opts="-v -i -j -h --args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --args) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__setup) |
| opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [<PROFILE>|hook|editor|link] [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__suggest) |
| opts="-v -i -j -h --run --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__test) |
| opts="-v -i -j -h --no-fail-fast --test-args --compiletest-rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --test-args) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --compiletest-rustc-args) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --extra-checks) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --compare-mode) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --pass) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --run) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| x.py__vendor) |
| opts="-v -i -j -h --sync --versioned-dirs --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..." |
| if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| fi |
| case "${prev}" in |
| --sync) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --config) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --build-dir) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --build) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --host) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --target) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --exclude) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --skip) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --rustc-error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --on-fail) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --keep-stage-std) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --src) |
| COMPREPLY=() |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o plusdirs |
| fi |
| return 0 |
| ;; |
| --jobs) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| -j) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --warnings) |
| COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) |
| return 0 |
| ;; |
| --error-format) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| --color) |
| COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) |
| return 0 |
| ;; |
| --rust-profile-generate) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --rust-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --llvm-profile-use) |
| local oldifs |
| if [ -n "${IFS+x}" ]; then |
| oldifs="$IFS" |
| fi |
| IFS=$'\n' |
| COMPREPLY=($(compgen -f "${cur}")) |
| if [ -n "${oldifs+x}" ]; then |
| IFS="$oldifs" |
| fi |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o filenames |
| fi |
| return 0 |
| ;; |
| --reproducible-artifact) |
| COMPREPLY=($(compgen -f "${cur}")) |
| return 0 |
| ;; |
| --set) |
| COMPREPLY=("${cur}") |
| if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then |
| compopt -o nospace |
| fi |
| return 0 |
| ;; |
| *) |
| COMPREPLY=() |
| ;; |
| esac |
| COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
| return 0 |
| ;; |
| esac |
| } |
| |
| if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then |
| complete -F _x.py -o nosort -o bashdefault -o default x.py |
| else |
| complete -F _x.py -o bashdefault -o default x.py |
| fi |