ai-coding-assistants-setup
Version:
Setup tool for integrating AI coding assistants into development workflows
82 lines • 2.19 kB
JavaScript
import chalk from 'chalk';
/**
* Feedback utility for providing consistent, styled console messages
* with appropriate emoji indicators
*/
export class Feedback {
/**
* Log a success message
* @param message The message to display
*/
static success(message) {
console.log(chalk.green(`✅ ${message}`));
}
/**
* Log a warning message
* @param message The message to display
*/
static warning(message) {
console.log(chalk.yellow(`⚠️ ${message}`));
}
/**
* Log an error message
* @param message The message to display
*/
static error(message) {
console.log(chalk.red(`❌ ${message}`));
}
/**
* Log an information message
* @param message The message to display
*/
static info(message) {
console.log(chalk.blue(`🔍 ${message}`));
}
/**
* Log an AI-related message
* @param message The message to display
*/
static ai(message) {
console.log(chalk.magenta(`🤖 ${message}`));
}
/**
* Log a process/workflow message
* @param message The message to display
*/
static process(message) {
console.log(chalk.cyan(`🔄 ${message}`));
}
/**
* Log a tip or suggestion
* @param message The message to display
*/
static tip(message) {
console.log(chalk.green(`💡 ${message}`));
}
/**
* Create a section header
* @param title The title of the section
*/
static section(title) {
console.log('');
console.log(chalk.bold.underline(`📋 ${title}`));
console.log('');
}
/**
* Create a subsection header
* @param title The title of the subsection
*/
static subsection(title) {
console.log(chalk.bold(` 📌 ${title}`));
}
/**
* Show a progress indicator with custom emoji
* @param message The message to display
* @param emoji The emoji to use (defaults to 🔄)
*/
static progress(message, emoji = '🔄') {
console.log(chalk.cyan(`${emoji} ${message}`));
}
}
export default Feedback;
//# sourceMappingURL=feedback.js.map