bubblewand/justfile
2025-07-22 02:55:00 -04:00

31 lines
370 B
Makefile

# Set the shell
set shell := ["bash", "-cu"]
# Build the Go project
build:
go build -o bin/app .
# Run the Go project
run:
go run .
# Run tests
test:
go test ./...
# Clean build artifacts
clean:
rm -rf bin
# Format the code
fmt:
go fmt ./...
# Tidy up go.mod/go.sum
tidy:
go mod tidy
# Init Go module (optional first step)
init name:
go mod init {{name}}