diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-27 08:53:26 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-27 08:53:26 +0300 |
| commit | c6e0b5cc48dedb52477cb0060e6ebc8ca4f088f2 (patch) | |
| tree | c8dfff1c65648e342a5908e8df3e660173cd3d6a /internal/processor/processor.go | |
| parent | dee27d8f2805c9e409853462d35f9103e1a8c53e (diff) | |
refactor(snonux): separate CLI parsing from I/O and theme logic
Split the overloaded parseFlags into focused helpers:
- parseFlags now does *only* CLI flag parsing.
- resolvePaths handles ~ expansion.
- validateDirs performs filesystem creation/checks.
- resolveTheme selects the random theme using rng.
This removes the SRP violation in parseFlags and makes each
function independently testable. Tests updated accordingly.
Fixes: z8
Diffstat (limited to 'internal/processor/processor.go')
0 files changed, 0 insertions, 0 deletions
