diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 14:13:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 14:13:58 +0300 |
| commit | a8bf293f048b91c912c77768b6a7859f58739e9c (patch) | |
| tree | 05bcf03cd870ab104349bca36fbbb1f2eec7b28a /docs | |
| parent | c38e792622bd392b09e6ed95a1242015b26f85a2 (diff) | |
refactor: split runCommand() into focused helpers (mj)
Extract runCommand() in cmd/gt/main.go into separate helpers
following SRP:
- parseFlags(): extract --log flag parsing
- dispatchInput(): route by arg count/content (version, stdin, args)
- handleNoInput(): TTY→REPL or stdin→parse path
- startREPL(): REPL launch with optional log file
- tryParse(): RPN-first with percentage fallback
runCommand() is now a 3-line orchestrator delegating to parseFlags()
and dispatchInput(). No behavioral change; all tests pass.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
