Open reknih opened 1 year ago
How does the existing --hide
flag work for you?
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?
Yes, but note that raw mode implies inheriting stdio, which means no control over the output.
It might be possible to change it to ignore
instead of inherit
to support your use case.
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.
Thumbs up for --hide 1 --raw
. Did anyone manage to get this working (with colors)?
Update: Found a surprisingly simple solution:
concurrently \"command-1\" \"command-2 > /dev/null 2>&1\" --raw
Hey @wottpal and @amannn, the --hide
+ --raw
flag combo has been fixed by #486. It's not yet released.
☝️ It's been released now. https://github.com/open-cli-tools/concurrently/releases/tag/v9.0.0
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 callingnpm 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.