1 2 3 4 5 6
#!/usr/bin/env bash set -eu target=$1 shift out=$(rg --only-matching ": out (\w*)" -r '$1' "$target") exec "${CODEROOT:?}/_/bin/$out" "$@"