Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process: async function() {
await this.base(arguments);
let configDb = await qx.tool.cli.ConfigDb.getInstance();
if (this.argv["feedback"] === null) {
this.argv["feedback"] = configDb.db("qx.default.feedback", true);
}
if (this.argv["machine-readable"]) {
qx.tool.compiler.Console.getInstance().setMachineReadable(true);
} else {
let configDb = await qx.tool.cli.ConfigDb.getInstance();
let color = configDb.db("qx.default.color", null);
if (color) {
let colorOn = consoleControl.color(color.split(" "));
process.stdout.write(colorOn + consoleControl.eraseLine());
let colorReset = consoleControl.color("reset");
process.on("exit", () => process.stdout.write(colorReset + consoleControl.eraseLine()));
let Console = qx.tool.compiler.Console.getInstance();
Console.setColorOn(colorOn);
}
if (this.argv["feedback"]) {
var themes = require("gauge/themes");
var ourTheme = themes.newTheme(themes({hasUnicode: true, hasColor: true}));
let colorOn = qx.tool.compiler.Console.getInstance().getColorOn();
ourTheme.preProgressbar = colorOn + ourTheme.preProgressbar;
ourTheme.preSubsection = colorOn + ourTheme.preSubsection;
ourTheme.progressbarTheme.postComplete += colorOn;
ourTheme.progressbarTheme.postRemaining += colorOn;
this.__gauge = new Gauge();
Plumbing.prototype.show = function (status) {
var values = Object.create(this.theme)
for (var key in status) {
values[key] = status[key]
}
return renderTemplate(this.width, this.template, values).trim() +
consoleControl.color('reset') +
consoleControl.eraseLine() + consoleControl.gotoSOL()
}
Plumbing.prototype.hide = function () {
return consoleControl.gotoSOL() + consoleControl.eraseLine()
}
Plumbing.prototype.hide = function () {
return consoleControl.gotoSOL() + consoleControl.eraseLine()
}