mirror of
https://github.com/apple/pkl.git
synced 2026-03-27 03:21:13 +01:00
More external reader refinements (#766)
* org.pkl.core.Readers -> org.pkl.core.Closeables * Remove coupling between pkl.core.module/resource and pkl.core.messaging
This commit is contained in:
@@ -24,7 +24,6 @@ import org.pkl.commons.cli.CliCommand
|
||||
import org.pkl.commons.cli.CliException
|
||||
import org.pkl.commons.toPath
|
||||
import org.pkl.core.*
|
||||
import org.pkl.core.Readers
|
||||
import org.pkl.core.packages.*
|
||||
|
||||
/**
|
||||
@@ -250,8 +249,8 @@ class CliDocGenerator(private val options: CliDocGeneratorOptions) : CliCommand(
|
||||
importedModules[pklBaseUri] = evaluator.evaluateSchema(ModuleSource.uri(pklBaseUri))
|
||||
}
|
||||
} finally {
|
||||
Readers.closeQuietly(builder.moduleKeyFactories)
|
||||
Readers.closeQuietly(builder.resourceReaders)
|
||||
Closeables.closeQuietly(builder.moduleKeyFactories)
|
||||
Closeables.closeQuietly(builder.resourceReaders)
|
||||
}
|
||||
|
||||
val versions = mutableMapOf<String, Version>()
|
||||
|
||||
Reference in New Issue
Block a user