mirror of
https://github.com/apple/pkl.git
synced 2026-01-15 16:13:35 +01:00
Resolve project dirs from working dir by default
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
5c950d2e73
commit
64bfcfdc4f
@@ -35,7 +35,7 @@ abstract class CliProjectCommand(cliOptions: CliBaseOptions, private val project
|
||||
)
|
||||
return@lazy listOf(projectFile.normalize())
|
||||
}
|
||||
projectDirs.map { dir ->
|
||||
projectDirs.map(cliOptions.normalizedWorkingDir::resolve).map { dir ->
|
||||
val projectFile = dir.resolve(PKL_PROJECT_FILENAME)
|
||||
if (!Files.exists(projectFile)) {
|
||||
throw CliException("Directory $dir does not contain a PklProject file.")
|
||||
|
||||
Reference in New Issue
Block a user