Skip to content

Commit

Permalink
Updated CLI Message for start command
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishalk91-4 committed Sep 19, 2024
1 parent 9b790c0 commit bffafef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/models/Studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
});
}
Expand Down

0 comments on commit bffafef

Please sign in to comment.