Type MethodMethoddependencies(from
dependencies(fromShowDependenciesJSON:)
Returns the dependencies listed by swift package show-dependencies --format json.
static func dependencies(fromShowDependenciesJSON json: String) -> [PackageDependency ]Parameters
jsonThe JSON output of the command.
Return Value
The dependencies in the order of a depth-first walk, or an empty array if the output cannot be read.
Discussion
The listing is a tree whose root is the package itself; the root is left out, and a package that several packages depend on is listed once.