Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NullVoxPopuli opened this issue Apr 1, 2023 · 2 comments

Comments

@NullVoxPopuli
Copy link
Contributor

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
Copy link
Member

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants