exitcode-demo / internal

internal - cli-guard examples/exitcode

NAME

internal - exit 4 (Internal)

SYNOPSIS

internal

DESCRIPTION

Returns exitcode.New(Internal, ...). Process exits 4. Use this for coily-internal failures the user cannot fix from the call site: config load failure, manifest miss, audit-write fail.

Examples:

exitcode-demo internal ; echo "exit: $?"
# error:
#     kind: internal
#     message: config load failed
#     hint: report a bug
# exit: 4

Treat exit 4 as host-broken-or-bug; escalate to operator, do not retry on this host.

Usage:

internal [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]