feat(config): TOML config and state, token resolution, host selection #25
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/5-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The config layer for #5: lazyforge can load, check and save its settings (
config.toml) and remembered values (state.toml), get a sign-in token, and pick which host to connect to. The onboarding, Settings and host-picker screens moved to #24.Changes
internal/configpackage (ADR 0004):token_cmdruns throughsh -cwith a 10s timeout. The token and the command's output never appear in errors.require_green_ciper host, plus a per-repo override under[hosts.<name>.repos."owner/name"]. Off by default (PM decision, #13).--host, the only host,default_host, otherwise the picker (#24).cmd/lazyforgehas--configand--hostflags, and prints the selected host until the UI exists.docs/architecture.mdconfig example now shows the CI setting.Test plan
make checkexit 0: format, lint (0 issues),go test -race, govulncheck ("No vulnerabilities found"), build.Rulings
Closes #5
🤖 Generated with Claude Code