Skip to content

Commit

Permalink
feat(cli): add hidden --no-clear option;
Browse files Browse the repository at this point in the history
- Closes #58
  • Loading branch information
lukeed committed Jun 29, 2020
1 parent e14ee4e commit 32a6a2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sirv-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ module.exports = function (dir, opts) {
server.listen(port, hostname, err => {
if (err) throw err;
if (opts.quiet) return;

clear(true); // wipe screen, but not history
if (opts.clear !== false) clear(true);
let { local, network } = laccess({ port, hostname, https });
stdout.write('\n' + PAD + colors.green('Your application is ready~! 🚀\n\n'));
isOther && stdout.write(PAD + colors.italic().dim(`➡ Port ${opts.port} is taken; using ${port} instead\n\n`));
Expand Down

0 comments on commit 32a6a2c

Please sign in to comment.