From c6673a1146567c397e34a49d5c0a0b57a4b56256 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 12 Jul 2018 15:06:15 +0300 Subject: Make CLI output a bit prettier --- cli.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli.js') diff --git a/cli.js b/cli.js index 6cb56b9..c14a8b8 100755 --- a/cli.js +++ b/cli.js @@ -208,7 +208,7 @@ vorpal }); const port = 1337; serverInstance = app.listen(port, () => - console.log(`${chalk.blue('debug server')} listening on port ${port}! URL: ${chalk.yellow(`http://localhost:${port}`)}`) + this.log(`${chalk.yellow('Debug server')} listening on port ${port}! URL: ${chalk.yellow(`http://localhost:${port}`)}`) ); callback(); }); @@ -218,9 +218,9 @@ vorpal .action(async function (args, callback) { if (serverInstance) { serverInstance.close(); - this.log(chalk.green('Server stopped.')); + this.log(`${chalk.yellow('Debug server')} stopped.`); } else { - this.log(chalk.red('Server is not running.')); + this.log(chalk.red('Debug server is not running.')); } callback(); }); -- cgit v1.3