Skip to content

refactor(interpreter): extract inline builtins from execute_dispatched_command#485

Merged
chaliy merged 1 commit intomainfrom
claude/fix-313-Y2nIj
Mar 2, 2026
Merged

refactor(interpreter): extract inline builtins from execute_dispatched_command#485
chaliy merged 1 commit intomainfrom
claude/fix-313-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • Extracted 6 inline command handlers from the 574-line execute_dispatched_command() into separate methods
  • New methods: execute_function_call, execute_local_builtin, execute_trap_builtin, execute_let_builtin, execute_unset_builtin, execute_caller_builtin
  • No behavioral changes, pure refactoring

Closes #313

Test plan

  • All existing tests pass (no behavioral changes)
  • clippy clean

…d_command

Extract 6 blocks from the 574-line execute_dispatched_command() into
separate methods: execute_function_call, execute_local_builtin,
execute_trap_builtin, execute_let_builtin, execute_unset_builtin,
execute_caller_builtin. No behavioral changes.

Closes #313

https://claude.ai/code/session_01WZjYqxm5xMPAEe7FSHJkDy
@chaliy chaliy force-pushed the claude/fix-313-Y2nIj branch from f6dee54 to 5ea1517 Compare March 2, 2026 20:26
@chaliy chaliy merged commit de0b714 into main Mar 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: break up large functions in interpreter (execute_command 554 lines, resolve_path 401 lines)

2 participants