We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-print-supported-features
1 parent d30e31e commit 5485148Copy full SHA for 5485148
Sources/PackageModel/Toolchain+SupportedFeatures.swift
@@ -100,10 +100,17 @@ extension Toolchain {
100
)
101
}
102
103
+ print("Root: \(parsedSupportedFeatures)")
104
+
105
let features: JSON = try parsedSupportedFeatures.get("features")
106
107
+ print("Features: \(features)")
108
109
110
let optionalFeatures = (try? features.getArray("optional")) ?? []
111
112
+ print("OptionalFeatures: \(optionalFeatures), as 'get': \(try? features.get("optional") as JSON)")
113
114
let optional: [SwiftCompilerFeature] = try optionalFeatures.map { json in
115
let name: String = try json.get("name")
116
let categories: [String]? = try json.getArrayIfAvailable("categories")
0 commit comments