Versions in this module Expand all Collapse all v0 v0.20.0 Nov 4, 2026 Changes in this version + const FormatJSON + const FormatTable + const FormatYAML + const OutputFlagUsage + const SchemaVersion + func HandleAuthError(err error) error + func HandleError(ios *iostreams.IOStreams, outputFormat string, err error) error + func PrintEnvelope(w io.Writer, data any) error + func PrintError(ios *iostreams.IOStreams, outputFormat string, err error) error + func Render(ios *iostreams.IOStreams, outputFormat string, data any, ...) error + func RenderBare(ios *iostreams.IOStreams, outputFormat string, data any, ...) error + func ResolveFormat(explicit string) string + func ValidateJSONOrTable(format string) error + func ValidateOutputFormat(format string, allowed ...string) error + type ErrorBody struct + Message string + type ErrorEnvelope struct + Error ErrorBody + SchemaVersion string + type TableRenderer func(w io.Writer, isTTY bool) error