Tidy up the top-level directory by moving misc. scripts into a subdirectory.
This commit is contained in:
12
scripts/format-all.sh
Executable file
12
scripts/format-all.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Format all sources using rustfmt.
|
||||
|
||||
topdir=$(dirname "$0")
|
||||
cd "$topdir"
|
||||
|
||||
# Make sure we can find rustfmt.
|
||||
export PATH="$PATH:$HOME/.cargo/bin"
|
||||
|
||||
exec cargo +stable fmt --all -- "$@"
|
||||
Reference in New Issue
Block a user