Files
RedBear-OS/fmt.sh
T
2018-07-02 07:42:33 +02:00

10 lines
184 B
Bash
Executable File

#!/usr/bin/env bash
ARGS=()
for crate in relibc $(find src -name Cargo.toml | cut -d '/' -f2 | grep -v template)
do
ARGS+=("--package" "$crate")
done
cargo fmt "${ARGS[@]}" "$@"