Skip to main content

Module output

Module output 

Source
Expand description

Presentation contract shared between anyback commands and the parent CLI that embeds them (anyr backup ...).

A non-interactive backup command produces one result document. CommandOutput decides how that document is rendered (compact JSON, indented JSON, human text, or nothing at all) and where it is written (stdout or a file). Only the result document travels through this type; diagnostics, progress, and errors stay on stderr so that stdout remains machine-parseable. Interactive commands render their own terminal UI.

Structs§

CommandOutput
Destination and presentation contract for a backup command result.
TextBuilder
Accumulates human-readable lines for a single result document.

Enums§

OutputMode
How a backup command result should be presented.