Documentation
¶
Overview ¶
Package exitcode defines the process exit contract shared by every command.
The contract is intentionally strict so scripts and agents can branch on the exit code instead of parsing stderr:
0 success 1 business failure (API envelope code is not 0/200) 2 usage or configuration error (nothing was sent) 3 runtime failure (network, timeout, 5xx, malformed response)
The API envelope is still written to stdout for 1, so `... | jq .code` keeps working.
Index ¶
Constants ¶
View Source
const ( OK = 0 Business = 1 Usage = 2 Runtime = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.