UNPKG

@cloud-copilot/cli

Version:

A standardized library for CLI building TypeScript CLI applications

21 lines 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exit = exit; /** * Optionally print a message and exit the process with the given exit code. * * @param exitCode the exit code to use * @param message the message to print */ function exit(exitCode, message) { if (message) { if (exitCode === 0) { console.log(message); } else { console.error(message); } } process.exit(exitCode); } //# sourceMappingURL=utils.js.map