-
- All Implemented Interfaces:
-
eu.jrie.jetbrains.kotlinshell.processes.execution.ExecutionContext,eu.jrie.jetbrains.kotlinshell.processes.execution.ProcessExecutionContext
@ExperimentalCoroutinesApi() public interface ShellBase implements ProcessExecutionContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classShellBase.Companion
-
Method Summary
Modifier and Type Method Description SuspendFunction1<ExecutionContext, Unit>command(SuspendFunction1<ShellBase, String> block)Creates command, that can be piped or executed inside shell Unitinvoke(SuspendFunction1<ExecutionContext, Unit> $self)abstract Unitfinalize()UnitcloseOut()abstract CoroutineScopegetScope()CoroutineScope used by this shell, its members and sub shells abstract Map<String, String>getEnvironment()Environment of this shell. abstract Map<String, String>getVariables()Variables of this shell. abstract FilegetDirectory()Current directory of this shell abstract ProcessCommandergetCommander()abstract ReceiveChannel<ByteReadPacket>getStdin()abstract SendChannel<ByteReadPacket>getStdout()abstract SendChannel<ByteReadPacket>getStderr()-
-
Method Detail
-
command
SuspendFunction1<ExecutionContext, Unit> command(SuspendFunction1<ShellBase, String> block)
Creates command, that can be piped or executed inside shell
-
invoke
Unit invoke(SuspendFunction1<ExecutionContext, Unit> $self)
-
getScope
abstract CoroutineScope getScope()
CoroutineScope used by this shell, its members and sub shells
-
getEnvironment
abstract Map<String, String> getEnvironment()
Environment of this shell. These variables are being inherited to sub shells.
-
getVariables
abstract Map<String, String> getVariables()
Variables of this shell. These variables are not being inherited to sub shells.
-
getDirectory
abstract File getDirectory()
Current directory of this shell
-
getCommander
abstract ProcessCommander getCommander()
-
getStdin
abstract ReceiveChannel<ByteReadPacket> getStdin()
-
getStdout
abstract SendChannel<ByteReadPacket> getStdout()
-
getStderr
abstract SendChannel<ByteReadPacket> getStderr()
-
-
-
-