Is there an easy way to get a union of `./pants --...
# general
f
Is there an easy way to get a union of
./pants --changed-since=main --changed-dependees=transitive list
with
./pants dependees --closed [some list of explicit deps]
?
I can do
Copy code
❯ ./pants --changed-since=HEAD --changed-dependees=transitive list > f1 && \
      ./pants dependees --closed --transitive tests/local/admin/conftest.py > f2 && \
      ./pants --spec-files=f1 --spec-files=f2 list
I guess, although it would be nice to not have to use files
a
I would’ve tried
<(./pants command)
, but I had that not work in the past
f
process substitution just makes temp files under the hood anyways
and I too have had it fail in surprising ways
w
as to your question, does
(do_x ; do_y) > output.txt
not do this?
f
I suppose that would work, I forget about subshells
don't even need the subshell, just need a command group with
{ }
it seems. Thanks!