Skip to main content

format_output_data

Function format_output_data 

Source
pub fn format_output_data(output: &OutputData, context: OutputContext) -> String
Expand description

Format OutputData for display based on context.

Rendering rules:

  • Single text node → Print text
  • Flat nodes with name only → Multi-column (interactive) or one-per-line
  • Flat nodes with cells → Aligned table
  • Nested children → Box-drawing tree (interactive) or brace notation