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
enough-analyst-54434
04/27/2023, 3:22 PMhigh-yak-85899
04/27/2023, 3:23 PMenough-analyst-54434
04/27/2023, 3:24 PM(... && ...) | pants test
enough-analyst-54434
04/27/2023, 3:25 PM$ (echo bob && echo jane) | nl
1 bob
2 jane
enough-analyst-54434
04/27/2023, 3:26 PM$ echo bob && echo jane | nl
bob
1 jane
high-yak-85899
04/27/2023, 4:00 PMenough-analyst-54434
04/27/2023, 4:04 PMenough-analyst-54434
04/27/2023, 4:05 PM