Bake in support for rustfmt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user