MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / exit

Method exit

packages/cli/lib/base-generator.js:360–366  ·  view source on GitHub ↗

* Tell this generator to exit with the given reason * @param {string|Error} reason

(reason)

Source from the content-addressed store, hash-verified

358 * @param {string|Error} reason
359 */
360 exit(reason) {
361 // exit(false) should not exit
362 if (reason === false) return;
363 // exit(), exit(undefined), exit('') should exit
364 if (!reason) reason = true;
365 this.exitGeneration = reason;
366 }
367
368 /**
369 * Select pkgManager and install packages

Callers 15

setOptionsMethod · 0.95
promptMethod · 0.95
mainFunction · 0.80
setOptionsMethod · 0.80
checkDependenciesFunction · 0.80
checkLoopBackProjectFunction · 0.80
_runLintFixMethod · 0.80
base-generator.jsFile · 0.80
validateExampleNameMethod · 0.80
migrateSelectedModelsMethod · 0.80
_migrateSingleModelMethod · 0.80
promptArtifactTypeMethod · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64