feat: add Ctrl+C interrupt handling

This commit is contained in:
Aman Varshney
2025-02-12 12:49:16 +05:30
parent 78340fca07
commit cc8850d7c2
4 changed files with 101 additions and 58 deletions

View File

@@ -0,0 +1,16 @@
import chalk from "chalk";
export const logger = {
error(...args: unknown[]) {
console.log(chalk.red(...args));
},
warn(...args: unknown[]) {
console.log(chalk.yellow(...args));
},
info(...args: unknown[]) {
console.log(chalk.cyan(...args));
},
success(...args: unknown[]) {
console.log(chalk.green(...args));
},
};