Overview
Phase: 2 - Code Quality
Priority: High
Estimated Effort: 8-10 hours
Problem Description
The global opts variable in generator.go:214 creates tight coupling and makes the code difficult to test and maintain.
Acceptance Criteria
Files to Modify
internal/generator/generator.go (major refactoring)
internal/generator/options.go (new file)
cmd/new.go (update to use new generator pattern)
See roadmap/phase2-quality/UOW-004-remove-global-state.md for detailed implementation plan.
Overview
Phase: 2 - Code Quality
Priority: High
Estimated Effort: 8-10 hours
Problem Description
The global
optsvariable ingenerator.go:214creates tight coupling and makes the code difficult to test and maintain.Acceptance Criteria
Files to Modify
internal/generator/generator.go(major refactoring)internal/generator/options.go(new file)cmd/new.go(update to use new generator pattern)See roadmap/phase2-quality/UOW-004-remove-global-state.md for detailed implementation plan.