Expand description
cmd_shell REPL migration. The line-handling logic is extracted into
handle_command(parts, conn, out) so unit tests can drive command
parsing/dispatch without spawning a subprocess. The outer stdin loop
is intentionally minimal and is not covered by unit tests — its
read_line blocking call would deadlock a buffer-driven test fixture.
Enums§
- Shell
Action - Returned by
handle_commandto signal whether the REPL should keep reading more lines.
Functions§
- handle_
command - REPL command dispatcher. Splits its input into a command + tail and
emits all output through
out. ReturnsQuitonquit/exit/q,Continueotherwise. - run
shellhandler. Outer stdin loop. Not unit-tested — the blockingread_linecall would deadlock aVec<u8>test fixture; the line handler logic lives inhandle_command, which is exhaustively tested.