testing library

Helpers for testing CLIs built with cmdline: a scripted terminal and a screen replay, to drive prompts and check what they draw.

Classes

MockTerminal cli
A pretend terminal for tests: scripted keys in, captured output out.
ScreenReplay cli
Replays terminal output onto a grid of plain text rows.