Skip to main content

Module batch

Module batch 

Source
Expand description

Non-interactive write mode (--output FILE / --stdout).

Walks the source from beginning to end applying any –filter / –head / –tail / –prettify already baked into the Source + LineIndex, writes the surviving logical lines as raw bytes to the destination, then exits.

With --follow, doesn’t exit — keeps polling for appended bytes and appends matching new lines to the destination, exactly mirroring the viewer’s auto-scroll behavior. SIGTERM/SIGHUP and Ctrl-C cleanly close the file.

Structs§

BatchSpec

Enums§

BatchDestination
Where the batch run writes its output.

Functions§

run