Documentation
¶
Overview ¶
Package output encodes a command result to a writer in a selectable format (JSON or YAML). It is CLI-agnostic — it takes a writer, a format, and a value — so a daemon, a CLI, or a test can all reuse the same encoding. It owns the one error intrinsic to its own machinery, declared on the shared sentinel type.
Index ¶
Constants ¶
View Source
const ErrUnsupportedFormat errs.Const = "unsupported output format"
ErrUnsupportedFormat indicates a format the encoder cannot produce.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.