Hi, I would like to be able to somehow parse the Package.swift file from either a new target or (even better) a CLI tool. The idea is that I would like to be able to automatically generate a graph of all the module dependencies (e.g. using graphviz). What is the best way to approach this? I could write a very ad-hoc parser in any programming language, but maybe there's already a better way?
I thought about maybe using SwiftSyntax, but that seems too low-level: I don't really need to know the AST representation, it would be easier if I could just access the Package
object directly and inspect its targets.