concurrently icon indicating copy to clipboard operation
concurrently copied to clipboard

Ability to limit the number of output lines for a process, similar to pnpm?

Open NullVoxPopuli opened this issue 2 years ago • 2 comments

I think this could easily be achieved in user-space / outside of concurrently, if the JS API had a way to configure a separate output stream per process? maybe?

pnpm has a max of 10 lines per process when it's running things in parallel: image

would be super cool if I could do this with my own scripts via concurrently some how.

It seems there is a max of 10 lines per process? image

NullVoxPopuli avatar Apr 01 '23 13:04 NullVoxPopuli

Hey! I'm not too sure of what the main ask is, there are many things to address 😅 is it

  1. proposing setting output stream per command?
  2. asking whether we already support it (from one of your screenshots using concurrently)?
  3. proposing implementing this kind of log window per command?

gustavohenke avatar Apr 02 '23 08:04 gustavohenke

kind of all of it -- I don't have enough information to ask something specific.

For my concurrently command which starts a lot of watching processes, I'd like to have the output constrained to a 10-line window. Idk if it's already supported (I didn't see anything in the --help), or even if it makes sense to implement in concurrently.

If it doesn't exist already in concurrently, I could see this behavior being pushed to user-space via a per-task formatter / stream output? maybe? this may be naiive as well.

NullVoxPopuli avatar Apr 03 '23 17:04 NullVoxPopuli