UNPKG

@mail-core/cli

Version:

Инструментарий для написания cli-скриптов

21 lines 880 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.env = void 0; const command_1 = require("../../../command/command"); const pkg_1 = require("../../../pkg/pkg"); exports.env = command_1.createCommand({ name: 'env', describe: 'Print env && ROOT_DIR', options: {}, async handler(argv, { console, describe, style: { bold, yellow } }) { const max = 16; console.log(arguments[1]); console.important(describe); console.log(bold('argv:'.padEnd(max)), argv); console.log(bold('process.version:'.padEnd(max)), process.version); console.log(bold('process.env:'.padEnd(max)), process.env); console.log(bold('PKG_RUN_ENV:'.padEnd(max)), yellow(pkg_1.PKG_RUN_ENV)); console.log(bold('ROOT_DIR:'.padEnd(max)), yellow(pkg_1.ROOT_DIR)); }, }); //# sourceMappingURL=index.js.map