UNPKG

rucken

Version:

Console tools and scripts for nx and not only that I (EndyKaufman) use to automate the workflow and speed up the development process

29 lines (28 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnvReplacerCommands = void 0; const tslib_1 = require("tslib"); const nestjs_console_1 = require("../../nestjs-console"); const utils_service_1 = require("../utils/utils.service"); let EnvReplacerCommands = class EnvReplacerCommands { constructor(utilsService) { this.utilsService = utilsService; } envReplacer(input) { process.stdout.write(this.utilsService.replaceEnv(input)); } }; tslib_1.__decorate([ (0, nestjs_console_1.Command)({ command: 'env-replacer <input>', description: 'recursive replace input value with process environment values', }), tslib_1.__metadata("design:type", Function), tslib_1.__metadata("design:paramtypes", [String]), tslib_1.__metadata("design:returntype", void 0) ], EnvReplacerCommands.prototype, "envReplacer", null); EnvReplacerCommands = tslib_1.__decorate([ (0, nestjs_console_1.Console)(), tslib_1.__metadata("design:paramtypes", [utils_service_1.UtilsService]) ], EnvReplacerCommands); exports.EnvReplacerCommands = EnvReplacerCommands;