The main event loop was refactored to replace a monolithic switch statement with an object-oriented Command pattern. The Parser now returns executable Command objects directly, delegating the logic that was previously housed in private static methods within the main class. This cleans up the top-level application structure and makes adding new commands much more maintainable.

Refactor command execution to use polymorphic Command objects - lukelouyu/ip