Skip to content

Commit f95e2d2

Browse files
committed
Add more commands to Justfile
1 parent 477947b commit f95e2d2

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Justfile

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11

2+
SED := `command -v gsed || command -v sed`
3+
4+
help:
5+
@just --list
6+
27
# git tasks to start next development version
38
prepare-dev-version v:
49
git checkout trunk
5-
gsed -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}+dev"/' Cargo.toml Cargo.lock
10+
{{SED}} -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}+dev"/' Cargo.toml Cargo.lock
611
git add Cargo.toml Cargo.lock
712
git commit -m 'Begin v{{v}} development'
813

@@ -11,10 +16,28 @@ prepare-dev-version v:
1116
prepare-release v:
1217
git checkout trunk
1318
cargo clippy
14-
gsed -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}"/' Cargo.toml Cargo.lock
19+
{{SED}} -zE -i 's/(name = "bigdecimal"\nversion )= [^\n]*/\1= "{{v}}"/' Cargo.toml Cargo.lock
1520
git add Cargo.toml Cargo.lock
1621
git commit -m 'Version {{v}}'
1722
git checkout master
1823
git merge trunk --no-ff -m 'v{{v}}'
1924
# git tag 'v{{v}}'
2025

26+
# enable and run benchmarks
27+
benchmark *args:
28+
scripts/benchmark-bigdecimal {{args}}
29+
30+
# enable and run property-tests
31+
run-property-tests:
32+
scripts/bigdecimal-property-tests test
33+
34+
35+
# enable property test dependencies
36+
enable-property-tests:
37+
scripts/bigdecimal-property-tests enable
38+
39+
40+
# print decimals with various formatting rules
41+
run-formatting-example:
42+
cargo run --example formatting-examples
43+

0 commit comments

Comments
 (0)