Skip to main content

Module command_result

Module command_result 

Source
Expand description

Structured command output and its terminal/JSON rendering.

CommandResult wraps a command’s typed payload with an ArtifactType and optional RenderingHints, decoupling what a command produces from how it is displayed. render_result dispatches on the active output format (table, JSON, YAML). The reusable payload shapes TextOutput, SuccessOutput, KeyValueOutput, and TableOutput cover common cases.

Structs§

CommandResult
KeyValueItem
KeyValueOutput
RenderingHints
SuccessOutput
TableOutput
TextOutput

Enums§

ArtifactType
ChartType

Functions§

render_result