diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2018-07-12 15:06:15 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2018-07-12 15:06:15 +0300 |
| commit | c6673a1146567c397e34a49d5c0a0b57a4b56256 (patch) | |
| tree | 2b209e8acf6808a2d9f34e503b20141551af2507 | |
| parent | 053cd6bb2dfe5f471d2316cf4b3c248bbae1b44d (diff) | |
Make CLI output a bit prettier
| -rwxr-xr-x | cli.js | 6 | ||||
| -rw-r--r-- | package.json | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -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(); }); diff --git a/package.json b/package.json index 534e1df..c6fe556 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "faaslift", - "version": "1.0.2", + "version": "1.0.3", "description": "", "main": "index.js", "scripts": { |
