mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat: add Ctrl+C interrupt handling
This commit is contained in:
16
apps/cli/src/utils/logger.ts
Normal file
16
apps/cli/src/utils/logger.ts
Normal 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));
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user