Skip to content

Commit

Permalink
Remove a bunch of old/unused xtask things
Browse files Browse the repository at this point in the history
Change-Id: I70313a00604b984417c6d990d8a76424ecaf6f5f
  • Loading branch information
jblebrun committed May 16, 2024
1 parent 5f4b096 commit 6d307ab
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 959 deletions.
216 changes: 2 additions & 214 deletions .xtask_bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ _xtask() {
",$1")
cmd="xtask"
;;
xtask,build-enclave-binary)
cmd="xtask__build__enclave__binary"
;;
xtask,check-format)
cmd="xtask__check__format"
;;
Expand All @@ -27,9 +24,6 @@ _xtask() {
xtask,help)
cmd="xtask__help"
;;
xtask,run-cargo-clean)
cmd="xtask__run__cargo__clean"
;;
xtask,run-cargo-clippy)
cmd="xtask__run__cargo__clippy"
;;
Expand All @@ -39,24 +33,9 @@ _xtask() {
xtask,run-cargo-fuzz)
cmd="xtask__run__cargo__fuzz"
;;
xtask,run-cargo-tests)
cmd="xtask__run__cargo__tests"
;;
xtask,run-cargo-udeps)
cmd="xtask__run__cargo__udeps"
;;
xtask,run-ci)
cmd="xtask__run__ci"
;;
xtask,run-oak-functions-example)
cmd="xtask__run__oak__functions__example"
;;
xtask,run-tests)
cmd="xtask__run__tests"
;;
xtask__help,build-enclave-binary)
cmd="xtask__help__build__enclave__binary"
;;
xtask__help,check-format)
cmd="xtask__help__check__format"
;;
Expand All @@ -69,9 +48,6 @@ _xtask() {
xtask__help,help)
cmd="xtask__help__help"
;;
xtask__help,run-cargo-clean)
cmd="xtask__help__run__cargo__clean"
;;
xtask__help,run-cargo-clippy)
cmd="xtask__help__run__cargo__clippy"
;;
Expand All @@ -81,29 +57,17 @@ _xtask() {
xtask__help,run-cargo-fuzz)
cmd="xtask__help__run__cargo__fuzz"
;;
xtask__help,run-cargo-tests)
cmd="xtask__help__run__cargo__tests"
;;
xtask__help,run-cargo-udeps)
cmd="xtask__help__run__cargo__udeps"
;;
xtask__help,run-ci)
cmd="xtask__help__run__ci"
;;
xtask__help,run-oak-functions-example)
cmd="xtask__help__run__oak__functions__example"
;;
xtask__help,run-tests)
cmd="xtask__help__run__tests"
;;
*)
;;
esac
done

case "${cmd}" in
xtask)
opts="-h --dry-run --logs --keep-going --help build-enclave-binary run-oak-functions-example format check-format run-tests run-cargo-clippy run-cargo-tests run-cargo-fuzz run-cargo-deny run-cargo-udeps run-ci run-cargo-clean completion help"
opts="-h --dry-run --logs --keep-going --help format check-format run-cargo-clippy run-cargo-fuzz run-cargo-deny run-cargo-udeps completion help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand All @@ -116,20 +80,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__build__enclave__binary)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__check__format)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
Expand Down Expand Up @@ -177,7 +127,7 @@ _xtask() {
return 0
;;
xtask__help)
opts="build-enclave-binary run-oak-functions-example format check-format run-tests run-cargo-clippy run-cargo-tests run-cargo-fuzz run-cargo-deny run-cargo-udeps run-ci run-cargo-clean completion help"
opts="format check-format run-cargo-clippy run-cargo-fuzz run-cargo-deny run-cargo-udeps completion help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand All @@ -190,20 +140,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__build__enclave__binary)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__check__format)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand Down Expand Up @@ -260,20 +196,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__cargo__clean)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__cargo__clippy)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand Down Expand Up @@ -316,20 +238,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__cargo__tests)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__cargo__udeps)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand All @@ -344,62 +252,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__ci)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__oak__functions__example)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__help__run__tests)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__cargo__clean)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__cargo__clippy)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
Expand Down Expand Up @@ -446,20 +298,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__cargo__tests)
opts="-h --cleanup --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__cargo__udeps)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
Expand All @@ -474,56 +312,6 @@ _xtask() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__ci)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__oak__functions__example)
opts="-h --example-name --lookup-data-path --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--example-name)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--lookup-data-path)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
xtask__run__tests)
opts="-h --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
esac
}

Expand Down
Loading

0 comments on commit 6d307ab

Please sign in to comment.