1
1
package eu.jrie.jetbrains.kotlinshell
2
2
3
+ import eu.jrie.jetbrains.kotlinshell.processes.execution.ExecutionContext
4
+ import eu.jrie.jetbrains.kotlinshell.processes.execution.ProcessExecutable
3
5
import eu.jrie.jetbrains.kotlinshell.processes.pipeline.Pipeline
4
6
import eu.jrie.jetbrains.kotlinshell.processes.process.Process
5
7
import eu.jrie.jetbrains.kotlinshell.processes.process.ProcessState
@@ -71,7 +73,8 @@ class KotlinShellScriptConfiguration : ScriptCompilationConfiguration (
71
73
companion object {
72
74
private val ESSENTIAL_KOTLIN_SHELL_CLASSES = arrayOf(
73
75
Shell ::class ,
74
- Process ::class , SystemProcess ::class , ProcessState ::class ,
76
+ ExecutionContext ::class ,
77
+ Process ::class , SystemProcess ::class , ProcessState ::class , ProcessExecutable ::class ,
75
78
Pipeline ::class
76
79
)
77
80
private val ESSENTIAL_KOTLIN_SHELL_IMPORTS = arrayOf(
@@ -93,7 +96,19 @@ class KotlinShellScriptConfiguration : ScriptCompilationConfiguration (
93
96
" eu.jrie.jetbrains.kotlinshell.shell.readonly" ,
94
97
95
98
" kotlinx.coroutines.channels.Channel" ,
96
- " kotlinx.coroutines.delay"
99
+ " kotlinx.coroutines.delay" ,
100
+ " kotlinx.coroutines.channels.consumeEach" ,
101
+ " kotlinx.coroutines.delay" ,
102
+
103
+ " java.io.OutputStream" ,
104
+ " java.io.InputStream" ,
105
+
106
+ " kotlinx.io.core.ByteReadPacket" ,
107
+ " kotlinx.io.core.readBytes" ,
108
+ " kotlinx.io.core.writeFully" ,
109
+ " kotlinx.io.core.readText" ,
110
+ " kotlinx.io.core.writeText" ,
111
+ " kotlinx.io.streams.writePacket"
97
112
)
98
113
}
99
114
}
0 commit comments