Versions in this module Expand all Collapse all v1 v1.0.0 Apr 17, 2026 Changes in this version + const ExitError + const ExitNotFound + const ExitOK + const ExitUsage + func EncodeJSON(w io.Writer, v any) error + func IsTerminal() bool + func WriteError(w io.Writer, format Format, e *CLIError) + type CLIError struct + Code string + ExitCode int + Message string + Retryable bool + Suggestions []string + func Err(code, message string) *CLIError + func ErrWithExit(code, message string, exitCode int) *CLIError + func (e *CLIError) Error() string + type Format string + const FormatJSON + const FormatTable + func ResolveFormat(flag string, jsonFlag bool) Format