Revert error coloring (for development on dedicated branch) (#565)

This commit is contained in:
Philip K.F. Hölzenspies
2024-07-03 17:25:06 +01:00
committed by GitHub
parent 527d236ba4
commit 5cc2ea2d00
25 changed files with 22 additions and 168 deletions

View File

@@ -17,7 +17,6 @@ package org.pkl.commons.cli
import java.io.PrintStream
import kotlin.system.exitProcess
import org.fusesource.jansi.AnsiConsole
/** Building block for CLIs. Intended to be called from a `main` method. */
fun cliMain(block: () -> Unit) {
@@ -28,9 +27,6 @@ fun cliMain(block: () -> Unit) {
if (!message.endsWith('\n')) stream.println()
}
// Setup AnsiConsole. This will automatically strip escape codes if
// the target shell doesn't appear to support them.
AnsiConsole.systemInstall()
// Force `native-image` to use system proxies (which does not happen with `-D`).
System.setProperty("java.net.useSystemProxies", "true")
try {