-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (39 loc) · 890 Bytes
/
justfile
File metadata and controls
53 lines (39 loc) · 890 Bytes
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
#!/usr/bin/env just
# agent-inference — AI inference routing agent
set dotenv-load := true
binary_name := "agent-inference"
bin_dir := "bin"
cmd_path := "./cmd/agent-inference"
mod test '.justfiles/test.just'
@default:
just --list --justfile {{source_file()}}
# Build binary to bin/
build:
go build -o {{bin_dir}}/{{binary_name}} {{cmd_path}}
# Run the agent
run *ARGS:
go run {{cmd_path}} {{ARGS}}
# Install binary to GOPATH/bin
install:
go install {{cmd_path}}
# Uninstall binary from GOPATH/bin
uninstall:
rm -f $(go env GOPATH)/bin/{{binary_name}}
# Run linter
lint:
golangci-lint run ./...
# Format code
fmt:
gofmt -w .
# Run go vet
vet:
go vet ./...
# Tidy module dependencies
tidy:
go mod tidy
# Show dependency graph
deps:
go mod graph
# Remove build artifacts
clean:
rm -rf {{bin_dir}}/ coverage.out coverage.html