feat(lib/log): changing the wrap of the log to include the indent parameter

This commit is contained in:
Raphael 2025-10-26 22:29:47 +01:00 committed by Raphaël
parent 5db4a7939d
commit 19babd28f1
2 changed files with 4 additions and 5 deletions

View file

@ -19,7 +19,7 @@ export const log = {
search: (name: string) => {
console.log(chalk.blueBright(`🔍 | Searching for ${name}`));
},
list: (name: string) => {
console.log(chalk.cyanBright(`\t✅ | ${name}`));
list: (indentation: number, name: string) => {
console.log(chalk.cyanBright(`${'\t'.repeat(indentation)}✅ | ${name}`));
},
};