File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Sources/Commands/PackageTools Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -97,24 +97,21 @@ enum ExtensionBlockSymbolBehavior: String, EnumerableFlag {
97
97
case omitExtensionBlockSymbols
98
98
}
99
99
100
- struct DumpPackage : SwiftCommand {
100
+ struct DumpPackage : AsyncSwiftCommand {
101
101
static let configuration = CommandConfiguration (
102
102
abstract: " Print parsed Package.swift as JSON " )
103
103
104
104
@OptionGroup ( visibility: . hidden)
105
105
var globalOptions : GlobalOptions
106
106
107
- func run( _ swiftTool: SwiftTool ) throws {
107
+ func run( _ swiftTool: SwiftTool ) async throws {
108
108
let workspace = try swiftTool. getActiveWorkspace ( )
109
109
let root = try swiftTool. getWorkspaceRoot ( )
110
110
111
- let rootManifests = try temp_await {
112
- workspace. loadRootManifests (
113
- packages: root. packages,
114
- observabilityScope: swiftTool. observabilityScope,
115
- completion: $0
116
- )
117
- }
111
+ let rootManifests = try await workspace. loadRootManifests (
112
+ packages: root. packages,
113
+ observabilityScope: swiftTool. observabilityScope
114
+ )
118
115
guard let rootManifest = rootManifests. values. first else {
119
116
throw StringError ( " invalid manifests at \( root. packages) " )
120
117
}
You can’t perform that action at this time.
0 commit comments