Skip to main content

Module status_footer

Module status_footer 

Source
Expand description

The anchored terminal footer start writes at the end of every log.

==================================================
Finished: 2026-07-30 23:36:20.295
Exit Code: 0

Matching the whole block at line starts means a bare Exit Code: N substring emitted by the wrapped command (inside a JSON payload, a quoted log excerpt, an rg dump, …) can no longer be mistaken for the footer (issue #150).

The Finished: line was previously parsed by nobody: --status read the exit code out of this block and then stamped end_time with the current time, even though the real finish time was sitting one line above the number it had just trusted (issue #170.2).

Structs§

LogFooter
The two facts the terminal footer carries.

Functions§

parse_footer_from_tail
Parse the last complete footer block out of a log tail.
parse_footer_timestamp
Parse the Finished: value both footer writers produce.
read_footer_from_log
Read the terminal footer from the end of a log file.