rapid-exabyte-76685
03/31/2022, 7:28 AMlist
to show the tags that have been applied to targets/files?rapid-exabyte-76685
03/31/2022, 7:28 AMrapid-exabyte-76685
03/31/2022, 7:29 AMnarrow-vegetable-37489
03/31/2022, 8:37 AM./pants --tag=<tag> list ::
if you only want to show targets of a specific tag. If you want to list the tags of all targets, I suppose you could do something like:
./pants peek :: | jq -r '.[] | select(.tags != null) | .address + ": " + (.tags | join(", "))'
rapid-exabyte-76685
03/31/2022, 8:45 AM./pants list --list-tags ::
witty-crayon-22786
03/31/2022, 4:36 PMpeek
+ jq
more and more… there are so many combinations of things that folks would like to do that the generality of jq
is very helpful.witty-crayon-22786
03/31/2022, 4:36 PMhundreds-father-404
03/31/2022, 5:19 PMhundreds-father-404
03/31/2022, 5:21 PM