MCPcopy
hub / github.com/tj/commander.js / _exit

Method _exit

lib/command.js:534–540  ·  view source on GitHub ↗

* Call process.exit, and _exitCallback if defined. * * @param {number} exitCode exit code for using with process.exit * @param {string} code an id string representing the error * @param {string} message human-readable description of the error * @return never * @private

(exitCode, code, message)

Source from the content-addressed store, hash-verified

532 */
533
534 _exit(exitCode, code, message) {
535 if (this._exitCallback) {
536 this._exitCallback(new CommanderError(exitCode, code, message));
537 // Expecting this line is not reached.
538 }
539 process.exit(exitCode);
540 }
541
542 /**
543 * Register callback `fn` for the command.

Callers 4

errorMethod · 0.95
versionMethod · 0.95
helpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected