open-cli-tools / concurrently

Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.
https://www.npmjs.com/package/concurrently
MIT License
7k stars 228 forks source link

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

Open NullVoxPopuli opened 1 year ago

NullVoxPopuli commented 1 year ago

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

gustavohenke commented 1 year ago

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?
NullVoxPopuli commented 1 year ago

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.