Skip to content

Commit 57a3179

Browse files
authored
build(justfile): add format support (#66)
Allows for formatting of source code when running just all Using the [fmt naming from Just's own](https://github.com/casey/just/blob/d15dad66c9d1cd342b99d0de2d2e99a610ee2fd8/justfile#L39)
1 parent b1633d7 commit 57a3179

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

justfile

+5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ _default:
33

44
# run doc, clippy, and test recipies
55
all *args:
6+
just fmt {{args}}
67
just doc {{args}}
78
just clippy {{args}}
89
just test {{args}}
910

11+
# Format all code
12+
fmt *args:
13+
cargo fmt --all {{args}}
14+
1015
# run tests on all feature combinations
1116
test *args:
1217
cargo hack test --feature-powerset {{args}}

0 commit comments

Comments
 (0)