https://pantsbuild.org/ logo
a

ambitious-student-81104

07/27/2022, 3:46 PM
QQ: what does the
+-
signs mean in
--filter-tag-regex="[[+-]regex1,regex2,..., [+-]regex1,regex2,..., ...]"
(link)?
h

hundreds-father-404

07/27/2022, 3:48 PM
https://www.pantsbuild.org/docs/project-introspection#filter---find-targets-that-match-a-predicate gives some examples. you can optionally put an
+
in front, which is the default. You can also optionally put a
-
in front to negate it
@happy-kitchen-89482 thoughts on removing the
+
from those generated docs? The default is already
+
, so seems like just extra confusion. (We would keep the code affordance)
a

ambitious-student-81104

07/27/2022, 3:49 PM
ok, so if we have something like
./pants filter --filter-address-regex=-foo ::
it is saying: find me ALL the targets with tags that do NOT fit the regex
foo
?
h

hundreds-father-404

07/27/2022, 3:51 PM
precisely
a

ambitious-student-81104

07/27/2022, 3:52 PM
thanks!
❤️ 1
5 Views