with one click
code-generation
Run and troubleshoot project code generation (sqlc + templ).
Menu
Run and troubleshoot project code generation (sqlc + templ).
Run mjr.wtf locally using Docker Compose (SQLite), including migrations, logs, and teardown.
Operate and validate mjr.wtf observability endpoints (/health, /metrics) and logging-related behavior. Use when adding metrics, changing auth around metrics, or debugging production-like issues.
Apply project-specific security and privacy guardrails (auth, headers, rate limiting, logging). Use when touching authentication, request handling, metrics exposure, or anything that could leak sensitive data.
Run, debug, and structure tests for this Go project (unit + integration), including generation prerequisites. Use when changing domain logic, repositories, HTTP handlers, or migrations.
Run and extend the end-to-end HTTP integration tests (SQLite in-memory) for mjr.wtf, covering auth, create/list/delete, redirects, and analytics. Use when changing handlers, middleware, or API contracts.
Configure mjr.wtf safely via environment variables and .env files.
| name | code-generation |
| description | Run and troubleshoot project code generation (sqlc + templ). |
| license | MIT |
| compatibility | Requires bash, git, Go, make, sqlc v1.30.0+, and templ. |
| metadata | {"repo":"mjrwtf","runner":"github-copilot-cli","version":1.2} |
| allowed-tools | Bash(git:*) Bash(make:*) Bash(go:*) Bash(sqlc:*) Bash(templ:*) Bash(curl:*) Read |
This repo relies on generated code for:
internal/adapters/repository/sqlc/sqlite/.templ templatesmake generate
Manual equivalents:
sqlc generate
templ generate
Run make generate when you change:
internal/adapters/repository/sqlc/sqlite/queries.sqlsqlc.yamlsqlc.yaml under schema:.templ filesIf you see compile errors referencing missing generated code, re-run:
make generate