diff --git a/src/core/restart.ts b/src/core/restart.ts index 56643ca..c6e7295 100644 --- a/src/core/restart.ts +++ b/src/core/restart.ts @@ -3,7 +3,7 @@ import inquirer from "inquirer"; import chalk from "chalk"; /* index */ -import { lucyCLI } from "@/index"; +import { myCLI } from "@/index"; /* utils */ import { exitCLI } from "@/utils/extras"; @@ -26,7 +26,7 @@ export async function restartAsync(spinner?: Ora): Promise { if (spinner) spinner.stop(); const restart_answers = await inquirer.prompt(restart_prompt); if (restart_answers.restart) { - lucyCLI(); + myCLI(); } else { exitCLI(); } diff --git a/src/index.ts b/src/index.ts index 1b48098..9297c3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,9 +20,9 @@ import pkg from "../package.json"; /** * @description Entry point of the CLI */ -export async function lucyCLI(): Promise { +export async function myCLI(): Promise { // show banner - const banner = await bannerRendererAsync("lucy", `${pkg.description}`); + const banner = await bannerRendererAsync("My-CLI", `${pkg.description}`); console.log(`${banner}\n`); // start menu @@ -43,7 +43,7 @@ export async function lucyCLI(): Promise { exitCLI(); break; default: - lucyCLI(); + myCLI(); break; } } @@ -56,7 +56,7 @@ function args(): void { if (program.opts().version) { console.log(`version ${packageVersion}`); } else { - lucyCLI(); + myCLI(); } } diff --git a/src/utils/extras.ts b/src/utils/extras.ts index 6bbccfd..b397e51 100644 --- a/src/utils/extras.ts +++ b/src/utils/extras.ts @@ -173,10 +173,8 @@ export function successMessage( file: string, emojiCode: string, context: string, -): void { - console.log( - chalk.green(`${emoji.get(emojiCode)} ${file} ${context} ... [done]`), - ); +): string { + return chalk.green(`${emoji.get(emojiCode)} ${file} ${context} ... [done]`) } /**