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.

Change default behavior for output piping

See original GitHub issue

Based on #19, #23,#27 it seems that the textual add-on that npm-watch does has generated a number of issues. I propose changing the default to simply be passing it along, and if the user explicitly opts-in, the script name could be pre-pended/output would be color stripped. This allows us to inform the user that the opt-in modes may produce have unpleasant visual effects that are not in our control due to I/O issues.

Tagging @alxndr , @hectormenendez , @domarmstrong, @duivv for feedback as they have been involved in issues/prs related to this issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
M-Zubercommented, Jul 30, 2021
1reaction
mashaalmemoncommented, Jul 12, 2021

@M-Zuber , would the change from @leviwheatcroft be able to be made in master? We’re experiencing log message styles/colors not making their way properly through when npm-watching the process. If inherit was set to ['pipe', 'inherit', 'inherit'] we would be all set.

Could submit a PR if it made things easier. Literally a 1 parameter change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does redirection (or piping) change the program's behavior
When the program's standard output is redirected to a file or to a pipe, stdout becomes fully buffered: the output data accumulates in...
Read more >
Piping and redirection - Core NGS Tools - UT Austin Wikis
Piping one command's output to another, and then redirecting STDOUT to a file ... Changing default ls behavior.
Read more >
How to manipulate files with shell redirection and pipelines in ...
You can manipulate and change the default behavior of these three basic file descriptors by leveraging redirection and pipelines.
Read more >
Command Redirection, Pipes - Windows CMD - SS64.com
Redirect command output to the input of handle n ... In a batch file the default behaviour is to read and expand variables...
Read more >
I/O Redirection and Pipes - UC Homepages
Unix provides the capability to change where standard input comes from, or where output goes using a concept called Input/Output (I/O) redirection.
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