Skip to content

Commit b3b0c7a

Browse files
committed
abstracts commandProcessor
1 parent 01c284a commit b3b0c7a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/build/src/main/scala/scala/build/Project.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ final case class Project(
6666
BloopConfig.SourceGenerator(
6767
List(sourceGlobs0),
6868
(config.outputPath / "source-generator-output").toNIO,
69-
List("python3", command0)
69+
command0
7070
)
7171
}.toList
7272
)

modules/options/src/main/scala/scala/build/options/GeneratorConfig.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import scala.build.errors.{BuildException, MalformedInputError}
66
final case class GeneratorConfig(
77
inputDir: String,
88
glob: List[String],
9-
commandFilePath: String,
9+
commandFilePath: List[String],
1010
outputPath: os.SubPath
1111
)
1212

@@ -15,7 +15,8 @@ object GeneratorConfig {
1515
def parse(input: Positioned[String], output: os.SubPath): Either[BuildException, GeneratorConfig] =
1616
input.value.split("\\|", 3) match {
1717
case Array(inputDir, glob, commandFilePath) =>
18-
Right(GeneratorConfig(inputDir, List(glob), commandFilePath, output))
18+
val commandFileList = commandFilePath.split(" ").toList
19+
Right(GeneratorConfig(inputDir, List(glob), commandFileList, output))
1920
case _ =>
2021
Left(
2122
new MalformedInputError(

0 commit comments

Comments
 (0)