Repository navigation
Expand file tree
/
Copy pathJustfile
More file actions
51 lines (40 loc) · 1.6 KB
/
Copy pathJustfile
File metadata and controls
51 lines (40 loc) · 1.6 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
# This template is customized by project-init ritual based on the project's language
# and tool set.
PROJECT_NAME := `git config --get remote.origin.url | sed -E 's/.*[:\/]([^\/]+)\/([^\/]+)\.git$/\1\/\2/'`
list:
@just --list
# Build the sandbox container
build-sandbox:
podman machine init --disk-size 30 >/dev/null 2>&1 || true
podman machine start >/dev/null 2>&1 || true
podman rmi localhost/asimi/sandbox/{{PROJECT_NAME}}:latest 2>/dev/null || true
podman build -t localhost/asimi/sandbox/{{PROJECT_NAME}}:latest -f .agents/sandbox/Dockerfile .
# Clean up the sandbox container
clean-sandbox:
podman rmi localhost/asimi/sandbox/{{PROJECT_NAME}}:latest
# Install project dependencies (language-specific) — customize for your project
install:
go mod download
# Run linter & formatter (language-specific) — customize for your project
lint:
go vet ./...
gofmt -l -s .
# Run tests (language-specific) — customize for your project
test: install
go test ./... -v -timeout 120s
# Start the program or server — customize for your project
run: build
./webexec
# Build the project — customize for your project
build: install
go generate ./...
go build -o webexec .
# Clean build artifacts and caches — customize for your project
clean:
rm -f webexec
go clean -cache -testcache
# Install system dependencies (Go toolchain + go-gitver for go generate)
bootstrap:
@command -v go >/dev/null 2>&1 || { echo "Go 1.25+ is required. Install from https://go.dev/doc/install"; exit 1; }
go version
go install git.rootprojects.org/root/go-gitver/v2@latest