Skip to content

Commit a2f39d7

Browse files
committed
chore(justfile): tweak justfile
1 parent b9dd14b commit a2f39d7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

justfile

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
bin := file_name(justfile_directory())
12
completions_dir := env_var("FDOTDIR") / "completions/muxi.fish"
23

34
# list recipes
@@ -12,7 +13,7 @@ default:
1213
@install:
1314
cargo install --path .
1415

15-
# Publish to creates.io
16+
# Publish to crates.io
1617
@publish: test
1718
cargo audit
1819
git push
@@ -39,14 +40,16 @@ open:
3940
@console:
4041
evcxr
4142

43+
# Upgrade dependencies
4244
upgrade:
4345
cargo upgrade --incompatible allow
4446

4547
# Profile with samply
46-
profile args="":
48+
profile *args:
4749
cargo build --profile profiling
48-
samply record target/profiling/muxi {{ args }}
50+
samply record target/profiling/{{ bin }} {{ args }}
4951

50-
debug args="":
52+
# Debug with rust-lldb
53+
debug *args:
5154
cargo build
52-
rust-lldb -Q -- target/debug/muxi {{ args }}
55+
rust-lldb -Q -- target/debug/{{ bin }} {{ args }}

0 commit comments

Comments
 (0)