Skip to content

Commit 79fd659

Browse files
committed
Add formatting command to nix
1 parent a6b4c30 commit 79fd659

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nix/bin/format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
# SPDX-FileCopyrightText: 2024 Google LLC
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
ROOT=$(git rev-parse --show-toplevel)
6+
7+
echo "Formatting Cabal files.."
8+
"${ROOT}"/.github/scripts/cabal-gild.sh
9+
10+
echo "Formatting Rust files.."
11+
./cargo.sh fmt --all -- --emit files

0 commit comments

Comments
 (0)