Documentation
¶
Overview ¶
Package exitcode maps errors to the process exit codes documented in Spec 01 — Exit codes. The mechanism (ExitError, Wrap, Resolve) now lives in forge; this package keeps heraut's code values and delegates the plumbing, so lower layers still classify via Wrap and cmd/heraut resolves via Resolve.
Index ¶
Constants ¶
const ( OK = forgeexit.OK // success Usage = forgeexit.Usage // bad flags or arguments (also the default for unclassified errors) Config = forgeexit.Config // invalid YAML, missing required fields, semantic validation failure Runtime = forgeexit.Runtime // binary missing, token unset, network failure, git operation failed Promotion = 4 // promotion guard tripped (E001/E002/E003) Internal = forgeexit.Internal // unexpected/internal condition )
Exit codes per docs/specs/01-overview.md § Exit codes. The generic codes are re-exported from forge's shared vocabulary (ADR-0003); Promotion is heraut's own domain code in the reserved 4-69 range.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.