Skip to main content

Module output

Module output 

Source
Expand description

A command’s output: its start and end in memory for the result, and all of it in a file an OutputStore names (spec 3.1 §7.33 fix 8, §10 D10).

Structs§

BoundedOutput
A finished command’s output as a bash result carries it (spec 3.1 §7.33 fix 8).
OutputFile
A file a command’s full output goes to, as an OutputStore creates it.

Constants§

INLINE_OUTPUT_CHARS
The most characters of output one bash result carries, stdout and stderr together (spec 3.1 §7.33 fix 8). A longer stream keeps its first third and its last two thirds of its share, around a marker naming the bytes left out.

Traits§

OutputStore
Keeps the full output of bash commands whose result is cut (spec 3.1 §10 D10).

Functions§

bound_output
Bounds the whole output of a finished command as BashTool bounds what it reads: at most INLINE_OUTPUT_CHARS characters, the whole output in a file from store when cut, of at most cap bytes. For a runner that receives a command’s output at once, such as a container’s.