Skip to content

Conversation

@rianjs
Copy link
Contributor

@rianjs rianjs commented Jan 29, 2026

Summary

  • Adopt jtk's Options pattern throughout cfl
  • Add Options struct with APIClient(), Config(), and View() methods
  • Add Register functions to all command packages
  • Remove duplicate config loading from all command files (~15 lines repeated in 10+ files)
  • Embed *root.Options in command-specific options structs

Test plan

  • All existing tests pass
  • Lint passes
  • Build succeeds

Closes #17

🤖 Generated with Claude Code

Adopt jtk's Options pattern throughout cfl:
- Add Options struct with APIClient(), Config(), and View() methods
- Add Register functions to all command packages
- Remove duplicate config loading from all command files
- Embed *root.Options in command-specific options structs

This eliminates ~15-line config/client blocks repeated in 10+ files.

Closes #17

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rianjs rianjs force-pushed the refactor/17-standardize-config-client-pattern branch from e39f570 to 2b424fd Compare January 29, 2026 20:45
@rianjs rianjs merged commit 22db031 into main Jan 29, 2026
7 checks passed
@rianjs rianjs deleted the refactor/17-standardize-config-client-pattern branch January 29, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: standardize config/client creation pattern in cfl

2 participants