Compare commits
1 Commits
e12cb1cac7
...
10af871d2b
| Author | SHA1 | Date | |
|---|---|---|---|
| 10af871d2b |
@ -48,7 +48,7 @@ class GenerateCommand(private val generators: Generators) : CliktCommand("genera
|
||||
|
||||
override fun copy(input: String, output: String?) {
|
||||
val inputPath = generator.treeRoot.resolve(input)
|
||||
val outputPath = output?.let { outputPathRoot.resolve(it) } ?: outputPathRoot.resolve(input)
|
||||
val outputPath = output?.let { outputPathRoot.resolve(it) } ?: outputPathRoot.resolve(inputPath)
|
||||
Files.createDirectories(outputPath.parent)
|
||||
Files.copy(inputPath, outputPath)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user