rapid-bird-79300
07/11/2022, 5:18 PM./pants dependees --transitive <file_path> finds links to files. The current dump shows all dependees for a file but not how they are connected.bitter-ability-32190
07/11/2022, 5:19 PMd3-force-graph and the output of ./pants peekbitter-ability-32190
07/11/2022, 5:19 PMwitty-crayon-22786
07/11/2022, 5:19 PM./pants paths --from=$target1 --to=$target2rapid-bird-79300
07/11/2022, 5:22 PMrapid-bird-79300
07/11/2022, 5:23 PMwitty-crayon-22786
07/11/2022, 5:23 PMwitty-crayon-22786
07/11/2022, 5:24 PMrapid-bird-79300
07/11/2022, 5:25 PMbitter-ability-32190
07/11/2022, 5:26 PM./pants peek :: for that πwitty-crayon-22786
07/11/2022, 5:26 PMpeek output to dot. it is generally very interesting, but peek can be better for debugging particular issuesbitter-ability-32190
07/11/2022, 5:27 PMpeek gives you JSON metadata for the CLI arg. In this case using :: means "everything". So: "give me all the metadata for the entire repo".
Then filter using jq or your favorite json librapid-bird-79300
07/11/2022, 5:41 PMdependees which currently does not show the paths.bitter-ability-32190
07/11/2022, 5:41 PMrapid-bird-79300
07/11/2022, 5:43 PMrapid-bird-79300
07/11/2022, 5:52 PM./pants dependees --no-transitive --output-format=json --output-file=app_dependees.txt app/:: is not sufficient because it does not show files.
Where /pants dependees --no-transitive --output-format=json --output-file=app_dependees.txt 'app/**/*.py' shows all file dependees.
However, you need both to keep it accurate.witty-crayon-22786
07/11/2022, 7:19 PMdependees json output format has essentially been replaced with peek in later versions