Versions in this module Expand all Collapse all v0 v0.1.2 Jun 16, 2026 v0.1.1 Jun 11, 2026 v0.1.0 Jun 11, 2026 Changes in this version + const ExitAuth + const ExitCancelled + const ExitError + const ExitNotFound + const ExitOK + func RenderError(w io.Writer, err error, jsonMode bool) int + func RenderFields(w io.Writer, rows [][2]string) + func RenderTable(w io.Writer, headers []string, rows [][]string) + type CodedError struct + Code int + ErrCode string + Hint string + Message string + func AuthError(msg, hint string) *CodedError + func CancelledError(msg string) *CodedError + func ErrorWithHint(msg, hint string) *CodedError + func Errorf(format string, a ...any) *CodedError + func NotFoundError(msg, hint string) *CodedError + func (e *CodedError) Error() string + type Mode struct + Agent string + CI bool + Color bool + JSON bool + TTY bool + func DetectMode(jsonFlag, noColorFlag bool) Mode + func (m Mode) Interactive() bool + type Printer struct + Err io.Writer + Mode Mode + Out io.Writer + Quiet bool + func New(mode Mode) *Printer + func (p *Printer) EmitJSON(v any) error + func (p *Printer) EmitJSONLine(v any) error + func (p *Printer) Human(format string, a ...any) + func (p *Printer) Status(format string, a ...any)