Documentation
¶
Overview ¶
Package render produces the CLI's output: aligned human tables on a TTY, raw JSON with --json, and progress that degrades to plain lines when piped.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONError ¶
JSONError mirrors the API's error envelope on stderr so scripts parse one shape for success and failure alike.
func NewProgress ¶
NewProgress returns a writer that renders transfer progress to out as the payload is copied through it: a live bar on a TTY, plain milestone lines (every 10%) when piped, nothing when quiet. Call the returned finish when the copy is done.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.