@black-flag/core • Docs
@black-flag/core / index / FrameworkExitCode
Well-known exit codes shared across CLI implementations.
AssertionFailed:
3
The exit code used when a sanity check fails. If your CLI is spitting out
this code, that's a hint to re-run things in debug mode (example:
DEBUG='black-flag*' npx jest
) since an error is being suppressed.
In most cases, this exit code is indicative of improper use of Black Flag.
DefaultError:
1
Hard-coded default fallback exit code when fatal errors occur.
NotImplemented:
2
The exit code used when executing an unimplemented child command.
Ok:
0
The exit code used when execution succeeds and exits gracefully.