Skip to content

Commit 45f2e08

Browse files
chore: add justfile
1 parent 8d39455 commit 45f2e08

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

justfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
OCI_IMAGE := "ghcr.io/nooneknowspeter/cpplings:main"
2+
3+
default:
4+
@just --list
5+
6+
run:
7+
zig build run
8+
9+
build:
10+
zig build
11+
12+
solutions:
13+
zig build
14+
./zig-out/bin/cpplings_cli -s
15+
16+
patches:
17+
zig build
18+
./zig-out/bin/cpplings_cli -p
19+
20+
compile-commands:
21+
zig build compile-flags
22+
23+
nix-shell:
24+
nix --extra-experimental-features "nix-command flakes" develop
25+
26+
docker-build:
27+
docker buildx build -t ${OCI_IMAGE} .
28+
29+
docker-run:
30+
docker run -itd -v .:/cpplings --name cpplings ${OCI_IMAGE}
31+
32+
docker-exec:
33+
docker exec -it -w "/cpplings" cpplings bash
34+
35+
docker-stop:
36+
docker container stop cpplings
37+
38+
docker-rm:
39+
docker rm -f cpplings
40+
41+
format:
42+
treefmt
43+
44+
lint:
45+
treefmt --ci --config-file treefmt.lint.toml
46+
47+
benchmark:
48+
hyperfine -i "zig build cli"

0 commit comments

Comments
 (0)