Files
swift-mirror/test/ScanDependencies/Inputs/PrintGraph.swift

10 lines
273 B
Swift

import Foundation
let fileName = CommandLine.arguments[1]
let data = try! Data(contentsOf: URL(fileURLWithPath: fileName))
let decoder = JSONDecoder()
let moduleDependencyGraph = try! decoder.decode(
ModuleDependencyGraph.self, from: data)
print(moduleDependencyGraph)