15 lines
261 B
Bash
15 lines
261 B
Bash
|
CMD="$(cat <<'EOF'
|
||
|
set -euo pipefail
|
||
|
HEIGHT="$(($(tput lines) - 1))"
|
||
|
clear
|
||
|
for i in fmt build clippy; do
|
||
|
echo "+ cargo "${i}""
|
||
|
cargo --color=always "${i}" |& head -n "${HEIGHT}"
|
||
|
done
|
||
|
EOF
|
||
|
)"
|
||
|
{
|
||
|
fd -tf -ers
|
||
|
printf "%s\n" "Cargo.toml"
|
||
|
} | entr bash -c "${CMD}"
|