Skip to content

ReplExitCodeScope

What an exit code computed through ExitCodeOptions is used for. Values are explicit and append-only so consumers can switch on them safely.

public enum ReplExitCodeScope

The code the process exits with: one per top-level run, decided after every framework layer has run. The default, and the only value a one-shot run ever observes.

Process = 0

ReplExitCodeScope

The code decorating one interactive command’s shell-integration command-end mark (OSC 133/633 D;). Scoped to that command; the process exit is resolved separately when the session ends.

ShellIntegrationMark = 1

ReplExitCodeScope