Skip to main content

parse_sections

Function parse_sections 

Source
pub fn parse_sections(lines: &[String]) -> Vec<LogSection>
Expand description

Splits a job log into its per-step sections, in order. Lines before the first marker (and, for Azure, between a Finishing and the next Starting) belong to no section. A log with no markers at all yields no sections, and callers show it as plain text.