Skip to main content

Module output

Module output 

Source
Expand description

Output formatting for the Torvyn CLI.

All commands produce structured result types that implement serde::Serialize. This module provides OutputContext which renders these results in the user’s selected format (human or JSON).

Modules§

json
JSON output rendering.
table
Table rendering for structured data output.
terminal
Human-readable terminal output helpers.

Structs§

CommandResult
The success/failure outcome of a command, with structured output.
OutputContext
Output context carrying terminal capabilities and user preferences.

Traits§

HumanRenderable
Trait for types that can be rendered to the terminal in human-readable format.