-
- All Implemented Interfaces:
-
eu.jrie.jetbrains.kotlinshell.processes.execution.ExecutionContext,eu.jrie.jetbrains.kotlinshell.processes.execution.ProcessExecutionContext,eu.jrie.jetbrains.kotlinshell.shell.ShellBase,eu.jrie.jetbrains.kotlinshell.shell.ShellUtility,eu.jrie.jetbrains.kotlinshell.shell.piping.ShellPiping
@ExperimentalCoroutinesApi() public interface ShellForking implements ShellPiping
-
-
Method Summary
Modifier and Type Method Description SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline>pipelineFork(SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)Builds pipeline for forked stream ProcessExecutableforkErr(ProcessExecutable $self, SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)Forks stderr of process by creating new Pipeline with stderr from last process as an input Part of piping DSL ProcessExecutableforkErr(ProcessExecutable $self, SendChannel<ByteReadPacket> channel)Forks stderr of process by pumping it to given channel Part of piping DSL SuspendFunction1<ExecutionContext, Unit>forkErr(SuspendFunction1<ExecutionContext, Unit> $self, SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)Forks stderr of lambda by creating new Pipeline with stderr from last process as an input Part of piping DSL SuspendFunction1<ExecutionContext, Unit>forkErr(SuspendFunction1<ExecutionContext, Unit> $self, SendChannel<ByteReadPacket> channel)Forks stderr of lambda by pumping it to given channel Part of piping DSL abstract List<Pair<Integer, Pipeline>>getDetachedPipelines()List of detached pipelines SuspendFunction1<ExecutionContext, Unit>getEnv()SuspendFunction1<ExecutionContext, Unit>getSet()Map<String, String>getShellEnv()Map<String, String>getSystemEnv()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()-
Methods inherited from class eu.jrie.jetbrains.kotlinshell.shell.piping.ShellForking
byteArrayLambda, contextLambda, detach, emptyByteArray, emptyPacket, fg, packet, packet, packetLambda, pipeline, streamLambda, stringLambda -
Methods inherited from class eu.jrie.jetbrains.kotlinshell.shell.piping.ShellPiping
cd, cd, cd, cd, cd, env, export, export, file, file, mkdir, unset, variable, variable -
Methods inherited from class eu.jrie.jetbrains.kotlinshell.shell.ShellUtility
closeOut, command, finalize, invoke -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
pipelineFork
SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> pipelineFork(SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)
Builds pipeline for forked stream
-
forkErr
ProcessExecutable forkErr(ProcessExecutable $self, SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)
Forks stderr of process by creating new Pipeline with stderr from last process as an input Part of piping DSL
-
forkErr
ProcessExecutable forkErr(ProcessExecutable $self, SendChannel<ByteReadPacket> channel)
Forks stderr of process by pumping it to given channel Part of piping DSL
-
forkErr
SuspendFunction1<ExecutionContext, Unit> forkErr(SuspendFunction1<ExecutionContext, Unit> $self, SuspendFunction2<AbstractPipingDSLShell, ReceiveChannel<ByteReadPacket>, Pipeline> fork)
Forks stderr of lambda by creating new Pipeline with stderr from last process as an input Part of piping DSL
-
forkErr
SuspendFunction1<ExecutionContext, Unit> forkErr(SuspendFunction1<ExecutionContext, Unit> $self, SendChannel<ByteReadPacket> channel)
Forks stderr of lambda by pumping it to given channel Part of piping DSL
-
getDetachedPipelines
abstract List<Pair<Integer, Pipeline>> getDetachedPipelines()
List of detached pipelines
-
getEnv
SuspendFunction1<ExecutionContext, Unit> getEnv()
-
getSet
SuspendFunction1<ExecutionContext, Unit> getSet()
-
getShellEnv
Map<String, String> getShellEnv()
-
getSystemEnv
Map<String, String> getSystemEnv()
-
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()
-
-
-
-