@dharshansr/gitgenius
Version:
AI-powered commit message generator with enhanced features
41 lines • 1.21 kB
JavaScript
import chalk from 'chalk';
export class DisplayUtils {
static success(message, withIcon = false) {
const icon = withIcon ? '✨ ' : '';
console.log(chalk.green(`${icon}[SUCCESS] ${message}`));
}
static error(message) {
console.log(chalk.red(`[ERROR] ${message}`));
}
static warning(message) {
console.log(chalk.yellow(`[WARNING] ${message}`));
}
static info(message) {
console.log(chalk.blue(`[INFO] ${message}`));
}
static log(category, message) {
console.log(chalk.blue(`[${category.toUpperCase()}] ${message}`));
}
static highlight(message) {
console.log(chalk.white(message));
}
static dim(message) {
console.log(chalk.gray(message));
}
static accent(message) {
console.log(chalk.yellow(message));
}
static cyan(message) {
console.log(chalk.cyan(message));
}
static green(message) {
console.log(chalk.green(message));
}
static formatList(items, indent = ' ') {
items.forEach(item => console.log(`${indent}${item}`));
}
static separator() {
console.log('');
}
}
//# sourceMappingURL=DisplayUtils.js.map