max
|
7533fed55e
|
refactor(cmd): extract polecat helpers to reduce duplication
Split polecat.go (1635 lines) into:
- polecat.go (1359 lines): cobra commands and handlers
- polecat_helpers.go (260 lines): shared helper functions
Extracted:
- resolvePolecatTargets(): shared list-building logic from remove/nuke
- checkPolecatSafety(): safety check logic for destructive operations
- displaySafetyCheckBlocked(): blocked polecat display
- displayDryRunSafetyCheck(): dry-run safety status display
Reduces duplication between runPolecatRemove and runPolecatNuke.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-10 00:25:59 -08:00 |
|