Bake in support for rustfmt

This commit is contained in:
Michael Wolf
2023-12-07 09:53:21 -06:00
parent 5c987ae777
commit 897a91b350
2 changed files with 54 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ function sniff_file_type() {
file_type="dart"
elif [[ $ff = *.pl ]]; then
file_type="perl"
elif [[ $ff = *.rs ]] ; then
file_type="rust"
fi
echo $file_type
@@ -191,6 +193,8 @@ function choose_wrapper() {
out="$WF_ROOT"/./isort-and-black.sh
elif [[ $file_type == "golang" ]]; then
out="$WF_ROOT"/./gofmt.sh
elif [[ $file_type == "rust" ]] ; then
out="$WF_ROOT"/./rustfmt.sh
elif [[ $file_type == "dart" ]]; then
out="$WF_ROOT"/./dart_format.sh
else