mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
273 B
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)
|