mirror of
https://github.com/apple/pkl.git
synced 2026-04-21 16:01:31 +02:00
Resolve project dirs from working dir by default
This commit is contained in:
committed by
Dan Chao
parent
f91f91fd30
commit
204c6b16c3
@@ -35,7 +35,7 @@ abstract class CliProjectCommand(cliOptions: CliBaseOptions, private val project
|
|||||||
)
|
)
|
||||||
return@lazy listOf(projectFile.normalize())
|
return@lazy listOf(projectFile.normalize())
|
||||||
}
|
}
|
||||||
projectDirs.map { dir ->
|
projectDirs.map(cliOptions.normalizedWorkingDir::resolve).map { dir ->
|
||||||
val projectFile = dir.resolve(PKL_PROJECT_FILENAME)
|
val projectFile = dir.resolve(PKL_PROJECT_FILENAME)
|
||||||
if (!Files.exists(projectFile)) {
|
if (!Files.exists(projectFile)) {
|
||||||
throw CliException("Directory $dir does not contain a PklProject file.")
|
throw CliException("Directory $dir does not contain a PklProject file.")
|
||||||
|
|||||||
Reference in New Issue
Block a user