summaryrefslogtreecommitdiff
path: root/docs/stack-operations.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 14:13:58 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 14:13:58 +0300
commita8bf293f048b91c912c77768b6a7859f58739e9c (patch)
tree05bcf03cd870ab104349bca36fbbb1f2eec7b28a /docs/stack-operations.md
parentc38e792622bd392b09e6ed95a1242015b26f85a2 (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/stack-operations.md')
0 files changed, 0 insertions, 0 deletions