I may have asked this before (I think I have in fa...
# development
w
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
I don't think so. We could but it'd take conventions and plumbing
w
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
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
It's only useful for the IDE plugin, but even that... maybe useful? I was spitballin' some ideas last night
b
Oh wait it is trivial if we collect all applicable types then filter based on target type
g
Isn't this what the cli does already if you try to run it on the wrong thing? :-)
b
Don't judge me!
🧑‍⚖️ 1
w
Isn't this what the cli does already if you try to run it on the wrong thing? 🙂
Exactly! Now to do it intentionally....