fmt.sh 176 B

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