https://pantsbuild.org/ logo
w

wide-midnight-78598

03/22/2023, 4:03 AM
I may have asked this before (I think I have in fact), but is there a CLI command that allows you to filter all your targets by goal? E.g. show me all my `package`’able targets?
b

bitter-ability-32190

03/22/2023, 1:05 PM
I don't think so. We could but it'd take conventions and plumbing
w

wide-midnight-78598

03/22/2023, 1:09 PM
I didn't think we added it in the past few months. Okay, good to know - undetermined if I really need it, or if there is a reasonable workaround. I'm working a little bit on the Pants plugin - so one idea was to have a filter/group/sort by goal (all tests together, all packages, etc.
b

bitter-ability-32190

03/22/2023, 1:33 PM
There's a little disconnect today between a goal and a target because they talk via field sets, so this isn't trivial But if it's useful to you, it surely is to others
w

wide-midnight-78598

03/22/2023, 1:33 PM
It's only useful for the IDE plugin, but even that... maybe useful? I was spitballin' some ideas last night
b

bitter-ability-32190

03/22/2023, 1:33 PM
Oh wait it is trivial if we collect all applicable types then filter based on target type
g

gorgeous-winter-99296

03/22/2023, 6:57 PM
Isn't this what the cli does already if you try to run it on the wrong thing? :-)
b

bitter-ability-32190

03/22/2023, 7:00 PM
Don't judge me!
🧑‍⚖️ 1
w

wide-midnight-78598

03/22/2023, 8:00 PM
Isn't this what the cli does already if you try to run it on the wrong thing? 🙂
Exactly! Now to do it intentionally....
2 Views