From bffafefbc0e028c73054061854d29e25d4699a61 Mon Sep 17 00:00:00 2001 From: Vishal K Date: Fri, 20 Sep 2024 00:40:07 +0530 Subject: [PATCH] Updated CLI Message for start command --- src/core/models/Studio.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/models/Studio.ts b/src/core/models/Studio.ts index d2ed51837dc..42b4c404e89 100644 --- a/src/core/models/Studio.ts +++ b/src/core/models/Studio.ts @@ -7,7 +7,7 @@ import chokidar from 'chokidar'; import open from 'open'; import path from 'path'; import { version as studioVersion } from '@asyncapi/studio/package.json'; -import { gray } from 'picocolors'; +import { gray, blue } from 'picocolors'; const { readFile, writeFile } = fPromises; @@ -100,9 +100,10 @@ export function start(filePath: string, port: number = DEFAULT_PORT): void { server.listen(port, () => { const url = `http://localhost:${port}?liveServer=${port}&studio-version=${studioVersion}`; - console.log(`Studio is now running at ${url}.`); - console.log(`You can open this URL in your web browser, and if needed, press ${gray('Ctrl + C')} to stop the process.`); - console.log(`Watching changes on file ${filePath}`); + console.log(`🎉🎉 Connected to Live Server running at ${blue(url)}.`); + console.log(`🌐 Open this URL in your web browser: ${blue(url)}`); + console.log(`🛑 If needed, press ${gray('Ctrl + C')} to stop the process.`); + console.log(`Watching changes on file ${blue(filePath)}`); open(url); }); }