Files
docker_dev/lowcoder/client/packages/lowcoder-cli/util/log.js
2025-11-17 18:45:35 +01:00

31 lines
484 B
JavaScript

import chalk from "chalk";
const colors = [
"black",
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"white",
"gray",
"redBright",
"greenBright",
"yellowBright",
"blueBright",
"magentaBright",
"cyanBright",
"whiteBright",
];
colors.forEach((color) => {
console[color] = (text) => {
console.log(chalk[color](text));
};
});
export const logBug = (text) => {
console.red(`${text}\n This maybe is a bug, you can issue a bug for us.`);
};