* Tell this generator to exit with the given reason * @param {string|Error} reason
(reason)
| 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 |
no outgoing calls