loud-laptop-17949
09/16/2022, 9:49 PMdependees? I am trying to get a map of dependees for a bunch of files and am either faced with running through a loop and calling dependees for each (slow) or using xargs to ./pants and calling dependees once, losing track of which target the dependee came from.
Ideally I could call dependees (and maybe other commands like it) once with a bunch of targets and get something like a json map of which target has which dependee.witty-crayon-22786
09/16/2022, 9:52 PM./pants peek :: will get you the adjacency list for all targetsloud-laptop-17949
09/16/2022, 9:57 PMwitty-crayon-22786
09/16/2022, 9:58 PM./pants --filter-target-type=… peek :: ?loud-laptop-17949
09/16/2022, 9:58 PM./pants list ... | xargs ./pants dependees --filter-target-type=python_testloud-laptop-17949
09/16/2022, 9:58 PMwitty-crayon-22786
09/16/2022, 9:58 PMloud-laptop-17949
09/16/2022, 9:58 PMloud-laptop-17949
09/16/2022, 9:59 PMwitty-crayon-22786
09/16/2022, 10:03 PM./pants peek :: plus some pretty simple recursive code will get you something similar faster probably: peek also includes the type informationwitty-crayon-22786
09/16/2022, 10:04 PMfasterfrom a performance perspective