Documentation
¶
Overview ¶
Package commandinput keeps command cancellation independent of blocking input.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read waits for one input operation without letting a terminal, pipe, or file delay command cancellation. The operation must own its buffers and only return data; validation effects and commits belong to the caller after Read returns.
An arbitrary input source cannot be interrupted portably. If cancellation wins, the pending read lives until its source is released or the CLI exits. The caller must not reuse that source after cancellation. A buffered result lets the reader finish without touching abandoned command state.
Types ¶
This section is empty.