Skip to content

Commit aa9516d

Browse files
author
Tobias Bordenca
committed
Propagate color in toolbox settings
1 parent d448810 commit aa9516d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/src/scala/quoted/Toolbox.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ object Toolbox {
4949
showRawTree: Boolean = false,
5050
outDir: Option[String] = None,
5151
compilerArgs: List[String] = Nil
52-
): Settings =
53-
new Settings(outDir, showRawTree, compilerArgs)
52+
): Settings = {
53+
val colorArg = if (color) "-color:always" else "-color:never"
54+
new Settings(outDir, showRawTree, colorArg :: compilerArgs)
55+
}
5456
}
5557

5658
class ToolboxNotFoundException(msg: String, cause: ClassNotFoundException) extends Exception(msg, cause)

0 commit comments

Comments
 (0)