Documentation
¶
Overview ¶
Package clierr maps the SDK's typed error hierarchy to friendly, actionable CLI messages and stable exit codes, and renders a machine-readable error envelope for --json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Coded ¶
Coded carries a pre-chosen exit code (and an optional message). Commands that render their own output — e.g. a batch summary — return a Coded with an empty Msg so the top-level handler exits with the right code without printing again.
type UsageError ¶
type UsageError struct{ Err error }
UsageError marks a bad-invocation error (unknown flag, missing/invalid argument) so it maps to ExitUsage rather than a generic failure.
func (*UsageError) Error ¶
func (e *UsageError) Error() string
func (*UsageError) Unwrap ¶
func (e *UsageError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.