Class MetaCommandHandler
java.lang.Object
org.ek9lang.cli.MetaCommandHandler
Handles REPL meta-commands (commands starting with ':').
Uses a command registration pattern to eliminate long if/else chains.
Commands are registered with their aliases and handlers. Parameterised commands (like :del N, :edit N text) use pattern matching.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of command handling, including any message to display. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the pending filename for save/load operations.Handle a meta-command.
-
Constructor Details
-
MetaCommandHandler
-
-
Method Details
-
handle
Handle a meta-command.- Parameters:
command- The full command string (including ':' prefix)- Returns:
- The command result
-
getPendingFilename
Get the pending filename for save/load operations.
-