Expand description
Confirmation I/O primitives.
This module owns the mechanics of asking a human to confirm an action by typing a specific token back — it does not decide which operations require confirmation. That is business/product confirmation policy and belongs in the consuming application layer, never here.
Functions§
- confirm_
typed - Write
prompttowriter, flush it, read one line fromreader, and report whether the trimmed input equalsexpected.