Skip to main content

Module render

Module render 

Source
Expand description

Rendering layer for ExecutionResult values.

Converts structured execution results into user-facing output (stdout) in the requested format (JSON, YAML, table). This module owns all println! calls for API response rendering.

Functionsยง

render_examples
Renders extended examples for a command to stdout.
render_result
Renders an ExecutionResult to stdout in the given format.
render_result_to_string
Renders an ExecutionResult to a String instead of stdout.