You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
gustavohenke commentedon Jul 15, 2023
How does the existing
--hideflag work for you?amannn commentedon 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,--rawseems to ignore any--hideargument.Would it make sense to support this?
gustavohenke commentedon Oct 2, 2023
Yes, but note that raw mode implies inheriting stdio, which means no control over the output.
concurrently/src/get-spawn-opts.ts
Line 42 in a61ef39
It might be possible to change it to
ignoreinstead ofinheritto support your use case.reknih commentedon Oct 2, 2023
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.
wottpal commentedon Aug 24, 2024
Thumbs up for
--hide 1 --raw. Did anyone manage to get this working (with colors)?Update: Found a surprisingly simple solution:
gustavohenke commentedon Aug 25, 2024
Hey @wottpal and @amannn, the
--hide+--rawflag combo has been fixed by #486. It's not yet released.gustavohenke commentedon Sep 8, 2024
☝️ It's been released now.
https://github.com/open-cli-tools/concurrently/releases/tag/v9.0.0