ko
Version:
build & lint library
24 lines (23 loc) • 770 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionFactory = void 0;
const chalk_1 = __importDefault(require("chalk"));
class ActionFactory {
constructor(service) {
this.service = service;
}
successStdout(...logs) {
console.log(...logs.map(log => chalk_1.default.green(log)));
}
warningStdout(...logs) {
console.log(...logs.map(log => chalk_1.default.green(log)));
}
errorStdout(...logs) {
console.log(...logs.map(log => chalk_1.default.green(log)));
}
}
exports.ActionFactory = ActionFactory;
exports.default = ActionFactory;