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

Filter for output of specific commands #434

Open
reknih opened this issue Jul 12, 2023 · 4 comments
Open

Filter for output of specific commands #434

reknih opened this issue Jul 12, 2023 · 4 comments

Comments

@reknih
Copy link

reknih commented Jul 12, 2023

Description: Allow me to filter which command outputs I want to display. Still run all tasks.

Use case: I want to debug a particular task of the set of tasks I run with concurrently and focus on its outputs. At the moment, I solve this by calling npm run dev | grep name-of-task. This works but potentially includes false positives. Additionally, concurrently will not color the task name because it is not directly attached to the terminal.

@gustavohenke
Copy link
Member

How does the existing --hide flag work for you?

@amannn
Copy link

amannn commented Aug 4, 2023

I have a similar situation. I have two processes and would like to use --hide 1 --raw, so that only the output from the first process is displayed. Unfortunately, --raw seems to ignore any --hide argument.

Would it make sense to support this?

@gustavohenke
Copy link
Member

Yes, but note that raw mode implies inheriting stdio, which means no control over the output.

...(raw && { stdio: 'inherit' as const }),

It might be possible to change it to ignore instead of inherit to support your use case.

@reknih
Copy link
Author

reknih commented Oct 2, 2023

How does the existing --hide flag work for you?

It works I guess but I run many tasks, so it's much easier to list the task I want to see instead of every other task.

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

No branches or pull requests

3 participants