We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6072c7f commit 4425fe2Copy full SHA for 4425fe2
clikt/src/main/kotlin/com/github/ajalt/clikt/output/CliktConsole.kt
@@ -56,11 +56,9 @@ class InteractiveCliktConsole(private val console: Console) : CliktConsole {
56
}
57
58
class NonInteractiveCliktConsole : CliktConsole {
59
- private val inReader by lazy { System.`in`.bufferedReader() }
60
-
61
override fun promptForLine(prompt: String, hideInput: Boolean) = try {
62
print(prompt, false)
63
- inReader.readLine() ?: throw RuntimeException("EOF")
+ readLine() ?: throw RuntimeException("EOF")
64
} catch (err: IOException) {
65
throw err
66
0 commit comments