mirror of
https://github.com/apple/pkl.git
synced 2026-03-18 23:33:55 +01:00
Follow up for trace pretty printing (#1227)
This commit is contained in:
@@ -19,6 +19,7 @@ import org.pkl.cli.repl.Repl
|
||||
import org.pkl.commons.cli.CliCommand
|
||||
import org.pkl.core.Loggers
|
||||
import org.pkl.core.SecurityManagers
|
||||
import org.pkl.core.evaluatorSettings.TraceMode
|
||||
import org.pkl.core.module.ModuleKeyFactories
|
||||
import org.pkl.core.module.ModulePathResolver
|
||||
import org.pkl.core.repl.ReplServer
|
||||
@@ -68,7 +69,7 @@ internal class CliRepl(private val options: CliEvaluatorOptions) : CliCommand(op
|
||||
options.base.normalizedWorkingDir,
|
||||
stackFrameTransformer,
|
||||
options.base.color?.hasColor() ?: false,
|
||||
options.base.traceMode,
|
||||
options.base.traceMode ?: TraceMode.COMPACT,
|
||||
)
|
||||
Repl(options.base.normalizedWorkingDir, server).run()
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import org.pkl.commons.toPath
|
||||
import org.pkl.core.Loggers
|
||||
import org.pkl.core.SecurityManagers
|
||||
import org.pkl.core.StackFrameTransformers
|
||||
import org.pkl.core.evaluatorSettings.TraceMode
|
||||
import org.pkl.core.http.HttpClient
|
||||
import org.pkl.core.module.ModuleKeyFactories
|
||||
import org.pkl.core.repl.ReplRequest
|
||||
@@ -43,7 +44,7 @@ class ReplMessagesTest {
|
||||
"/".toPath(),
|
||||
StackFrameTransformers.defaultTransformer,
|
||||
false,
|
||||
null,
|
||||
TraceMode.COMPACT,
|
||||
)
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user