please icon indicating copy to clipboard operation
please copied to clipboard

Allow wildcards for `--include`

Open samwestmoreland opened this issue 3 years ago • 2 comments

As far as I can work out, at the moment it's not possible to do something like plz query print //dir/... --include 'metadata*', but it might be nice to be able to do that.

This is potentially too narrow a use case and/or a misuse of labels...

samwestmoreland avatar Aug 11 '22 16:08 samwestmoreland

I think this could be very useful. There are targets that have labels like go_package:github.com/thought-machine/please/src/core, and it might be nice to do something like plz query alltargets -i go_package:\*

Tatskaari avatar Aug 15 '22 17:08 Tatskaari

Yup, seems useful and I don't think it will be particularly hard to do (we don't index by labels so it isn't a significant performance issue or anything)

peterebden avatar Aug 15 '22 18:08 peterebden

This issue has been automatically marked as stale because it has not had any recent activity in the past 90 days. It will be closed if no further activity occurs. If you require additional support, please reply to this message. Thank you for your contributions.

stale[bot] avatar Nov 22 '22 21:11 stale[bot]