high-yak-85899
04/27/2023, 3:21 PMxargs
provides a really nice mechanism to pipe results into successive pants
calls. Is there a similar pattern for joining results of two pants
calls? My use case is pretty non-standard, but I would like to run something like pants <find a buch of targets> && pants <find a bunch of different targets> | xargs pants test
.enough-analyst-54434
04/27/2023, 3:22 PMpants test $(...) $(...)
high-yak-85899
04/27/2023, 3:22 PMenough-analyst-54434
04/27/2023, 3:22 PMcat <(...) <(...) | xargs pants
high-yak-85899
04/27/2023, 3:23 PMenough-analyst-54434
04/27/2023, 3:24 PM(... && ...) | pants test
$ (echo bob && echo jane) | nl
1 bob
2 jane
$ echo bob && echo jane | nl
bob
1 jane
high-yak-85899
04/27/2023, 4:00 PMenough-analyst-54434
04/27/2023, 4:04 PM