Hey all, is it possible to get structured output o...
# general
s
Hey all, is it possible to get structured output of
pants dependencies
, for example, in json?
1
b
pants peek
gives JSON-formatted info, including dependencies. You may need to combine multiple steps like
pants dependencies ... | xargs pants peek ...
and/or post-process the JSON to get exactly what you want
s
But peek only shows direct dependencies, right? I want to get the whole transitive tree of dependencies in json format in constant number of calls to pants, preferably in one command
b
Yeah, you may need to use
dependencies --transitive
and the pipe. Either that or
pants peek ::
and then computing the transitive dependencies yourself from that output. I don't know of a single call that does what it sounds like you want to do.
s
I think I got you, you suggest first getting the list of everything I need and then feed it into peek, yep, thanks