docs: improve readmes for cmd and template components

This commit is contained in:
2026-05-29 21:24:00 +02:00
parent 6929124ee3
commit 77acc627dc
2 changed files with 24 additions and 11 deletions

View File

@@ -1,8 +1,14 @@
# cmd
Executables live here.
Application entrypoints.
| binary | purpose |
| ------------ | ----------------- |
| `cmd/server` | web server |
| `cmd/user` | user creation CLI |
| binary | purpose |
| ------------ | --------------------------------- |
| `cmd/server` | HTTP server and worker processes |
| `cmd/user` | User management CLI |
## Conventions
- Each subdirectory is a `package main` that compiles to a standalone binary.
- Shared logic lives in `internal/` or `pkg/`, not in `cmd/`.
- Configuration is read from environment variables — see each binary's `main.go` for the full list.