Wasteland is a standalone CLI (wl) for the Wasteland federation protocol.
It was extracted from the gastown monorepo to evolve independently.
make build— compilewlbinary tobin/wlmake check— fmt-check, lint, vet, test (pre-commit runs this)make test— unit tests onlygo test ./...— run all tests
cmd/wl/— CLI entry point and command handlersinternal/federation/— core wasteland protocol (join, config, DoltHub API)internal/pile/— read-only DoltHub client for hop/the-pile (profile viewer)internal/commons/— wl-commons database operations (wanted board CRUD)internal/xdg/— XDG base directory support for config/data pathsinternal/style/— terminal styling with lipgloss (Ayu theme)
- XDG paths: config in
~/.config/wasteland/, data in~/.local/share/wasteland/ - Identity:
--display-nameand--emailflags, falling back togit config - No gastown imports — fully standalone
- Test doubles: hand-written fakes, no mock libraries
- CLI pattern:
runFoo()wires deps, testable logic in separate functions