Expand description
Status formatter module for execution records
Provides formatting functions for execution status output in various formats:
- Links Notation (links-notation): Structured link doublet format with nested options
- JSON: Standard JSON output
- Text: Human-readable text format
Structs§
- Status
Query Result - Query result from status lookup
Functions§
- attach_
current_ time - Compute a
currentTimevalue for a record if its status isexecuting. ReturnsNonefor completed records. Wrapping this in a helper makes it easy to attach the same timestamp to all output formats and to test the behavior deterministically. - enrich_
detached_ status - Enrich execution record with live session status for detached executions. If a record shows “executing” but the detached session has actually ended, returns an updated copy with status “executed”. If it shows “executed” but the session is still running, returns a copy with status “executing”.
- format_
record - Format execution record based on format type
- format_
record_ as_ links_ notation - Format execution record as Links Notation (indented style) Uses nested Links notation for object values (like options) instead of JSON
- format_
record_ as_ links_ notation_ with_ current_ time - Same as
format_record_as_links_notationbut injects acurrentTimefield (right afterstartTime) when a value is supplied. - format_
record_ as_ text - Format execution record as human-readable text
- format_
record_ as_ text_ with_ current_ time - Same as
format_record_as_textbut adds aCurrent Time:line right afterStart Time:when a value is supplied. - format_
record_ list - Format execution records based on format type.
- format_
record_ list_ as_ links_ notation - Format execution records as a Links Notation list.
- format_
record_ list_ as_ text - Format execution records as human-readable text.
- format_
record_ with_ current_ time - Same as
format_recordbut the output includescurrentTimewhen a value is supplied. Use this fromquery_statusso all three formats stay in sync. - is_
detached_ session_ alive - Check if a detached isolation session is still running Returns Some(true) if running, Some(false) if not, None if unable to determine
- list_
executions - Handle execution list query and return the result
- query_
status - Handle status query and return the result
- read_
exit_ code_ from_ log - Read the terminal exit code from the anchored footer at the end of a log.