question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to sirv-cli to not clear the console buffer

See original GitHub issue

First off, awesome work on sirv. I use it basically every day and love the simplicity. So nice not to have to implement a native http server for each project to get the near native performance ❤️

My typically use case is to add sirv (via sirv-cli) for testing production builds. e.g. in a package.json NPM script task which does a production build and then serves the build assets with sirv. Works great 👍

However, when sirv starts it clears the console buffer so I lose the ability to scroll back to see the build output. I find myself either stopping the build to see the output or running sirv in a separate console… but both these approaches are less than ideal. It would be useful to have a cli flag to disable clearing the console.

Not sure what the best option name would be, maybe something like -n, --no-clear?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maxmiltoncommented, Sep 25, 2018

Works great, thank you 💯

1reaction
lukeedcommented, Sep 25, 2018

Fixed in console-clear@1.1.1. New installs will pick this up~

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

sirv-cli - npm
A lightweight CLI program to serve static sites~!. Quickly start a server to preview the assets of any directory! Just like serve ,...
Read more >
linux - How can I make `clear` preserve entire scrollback buffer?
Solution 1: tmux ... Use tmux and its scrollback buffer. My tests indicate it behaves the way you want (at least when clear...
Read more >
Version history for GoodSync - AfterDawn
Browse Dialog: do not clear Auto settings, if only Filter changed. ... gscp: Add handling of /profile= and logging command line options.
Read more >
VMware Tanzu Greenplum Command Center v4.14 ... - VMware Docs
Greenplum Command Center 4.14 adds new features to Greenplum Command Center ... 165236914 - The gpcc command-line utility did not work with the...
Read more >
Software Development | Dogs Chasing Squirrels
"start" : "sirv public --no-clear --single --http2 --port 5000 --cert ... There's an easy way to get direct access to the output stream...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found