-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
72 lines (57 loc) · 1.69 KB
/
justfile
File metadata and controls
72 lines (57 loc) · 1.69 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Justfile for C23 CLI Template
# Build the project
build:
zig build
default: build
# Build with release optimization
release:
zig build -Doptimize=ReleaseSafe
# Run the application (with optional arguments)
run *args:
zig build run -- {{ args }}
# Run tests
test:
zig build test
# Run tests with different optimization levels
test-debug:
zig build test -Doptimize=Debug
test-release:
zig build test -Doptimize=ReleaseSafe
test-fast:
zig build test -Doptimize=ReleaseFast
# Check code formatting
fmt:
zig build fmt
fmt-check:
zig build fmt-check
# Run all checks
check:
zig build check
# Clean build artifacts
clean:
zig build clean
# Install dependencies (if any)
install:
# No additional installation needed for this template
echo "No additional installation needed"
# Generate documentation
docs:
# Generate documentation using your preferred tool
echo "Documentation generation not configured"
# Display help
help:
echo "Available commands:"
echo " build - Build the project"
echo " release - Build with release optimization"
echo " run - Run the application"
echo " test - Run tests"
echo " test-debug - Run tests with debug optimization"
echo " test-release - Run tests with release optimization"
echo " test-fast - Run tests with fast optimization"
echo " fmt - Format code"
echo " fmt-check - Check code formatting"
echo " check - Run all checks"
echo " clean - Clean build artifacts"
echo " install - Install dependencies"
echo " docs - Generate documentation"
echo " help - Display this help message"