Skip to main content

Module exit

Module exit 

Source
Expand description

sysexits(3)-style exit codes for the mkit CLI.

Shell scripts that pipe mkit ... || handle use $? to distinguish usage errors from transient transport failures. See docs/CLI.md §“Exit codes” for the documented contract.

Constants§

CANTCREAT
Cannot create an output file.
CONFIG_ERROR
Unknown config key or invalid config value.
DATAERR
Malformed input — corrupt object, bad hash literal on the CLI, etc.
GENERAL_ERROR
Catch-all for errors that do not fit a more specific category.
NOINPUT
Input file does not exist or is unreadable.
NOPERM
Permission denied.
OK
Successful termination.
PROTOCOL_ERROR
Bad URL scheme or malformed server response.
TEMPFAIL
Temporary failure; retry is safe.
UNAVAILABLE
Transport could not connect.
USAGE
Wrong args or unknown subcommand.