Conversation
- Pre-populate init form with existing config values when re-running init - Show authenticated user details in config test output (display name, email, account ID) - Add GetCurrentUser method to API client using legacy /rest/api/user/current endpoint - Add User type to api/types.go Closes #54
Test Coverage Assessment for PR #56SummaryThis PR adds two features: (1) enhanced What's Covered
Coverage Gaps to Consider1. The new
While the happy path is covered indirectly, a direct test in 2. The display logic in
These are presentation-only changes with low risk, so the lack of explicit tests is acceptable. 3. The new pre-population logic in
This logic is straightforward but involves file I/O and has clear priority semantics that would benefit from explicit unit tests. RecommendationThe PR is acceptable to merge as-is. The changes are relatively low-risk (display improvements and form pre-population), and the critical paths (API connectivity, authentication) remain well-tested. For a future follow-up, consider adding:
Automated review by Claude |
Summary
Improves cfl's init command to reuse existing values and enhances config test output to match jtk's more informative style.
Changes
GetCurrentUser()method using legacy/rest/api/user/currentendpointUsertype with AccountID, DisplayName, Email fieldsTest plan
make build-cflsucceedsmake testin tools/cfl passesmake lintin tools/cfl passescfl initpre-populates existing valuescfl config testshows user detailsCloses #54