-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
35 lines (30 loc) · 899 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
alias c := cli
alias s := service
alias l := libs
alias i := impl
cli scmd *args:
#!/bin/bash
if [ {{scmd}} = "ir" ]; then
cargo install im --path ./cli
elif [ {{scmd}} = "ir:now" ]; then
cargo install im --path ./cli --offline
# cargo +nightly install im --path ./cli -Z no-index-update
elif [ {{scmd}} = "build:now" ]; then
cargo build im --path ./cli --offline
# cargo +nightly build -p im -Z no-index-update
else
cargo {{scmd}} -p im {{args}}
fi
service scmd *args:
#!/bin/bash
if [ {{scmd}} = "dev" ]; then
RUST_LOG="service=debug" cargo watch -s "cargo shuttle run" -i cli/
elif [ {{scmd}} = "stress" ]; then
oha -n 250 -c 50 -q 4 --latency-correction --disable-keepalive http://localhost:8000/v1/record/all
else
cargo {{scmd}} -p service {{args}}
fi
libs scmd *args:
cargo {{scmd}} -p libs {{args}}
impl scmd *args:
cargo {{scmd}} -p imon-derive {{args}}