_default:
  @just --list

# Install dependencies (Go modules)
install:
  go mod download

# Run from source (development)
run:
  go run ./cmd/goget

# Build the binary
build:
  go vet ./...
  gofmt -l $(find cmd internal pkg -name '*.go') | grep . && exit 1 || true
  go build -ldflags "-s -w" -o bin/goget ./cmd/goget

# Run tests (race detector + fuzz seed corpus)
test:
  go test -race -count=1 ./...

# Remove build artifacts
uninstall:
  rm -rf bin/ coverage.out
