color_derived_cells

Function color_derived_cells 

Source
pub fn color_derived_cells(cells: Vec<String>) -> Vec<Cell>
Expand description

Wrap a string-cell row in [comfy_table::Cell]s with blue foreground so derived-metric rows render visually distinct from the per-thread primary table when stdout is a TTY. Operators scanning a long compare or show output can locate the ## Derived metrics rows at a glance instead of relying on the section header alone.

On a non-TTY stdout the comfy-table builder calls [comfy_table::Table::force_no_tty] (see crate::cli::new_table) which strips the ANSI escape sequences; the rendered output is byte-identical to the pre-color baseline for shell-pipeline consumers.

Color choice: blue contrasts with both the unstyled primary table and the perf-delta verdict palette (Color::Red / Color::Green for REGRESSION / improvement) — derived rows do not carry a regression verdict of their own, so reusing the verdict colors here would conflict with the established convention.