-
@ExperimentalCoroutinesApi() public class ScriptingShellA class exposing basic non suspend API for shell scripting.
To use all Shell members call ScriptingShell.shell or shell.
-
-
Constructor Summary
Constructors Constructor Description ScriptingShell(Map<String, String> environment, File directory, CoroutineScope scope)
-
Method Summary
Modifier and Type Method Description final ProcessExecutableprocess(String $self)final ProcessExecutableprocess(File $self, String arg)final Unitrun(Executable $self)final List<Process>detach(ProcessExecutable process)final Unitfg(Integer index)final Unitjoin(Process process)final UnitjoinAll()final Unitkill(Process process)final UnitkillAll()final Pipelinepipeline(SuspendFunction1<AbstractPipingDSLShell, Pipeline> pipelineConfig)final Unitshell(SuspendFunction1<Shell, Unit> script)Executes suspending script with all Shell API available -
-
Method Detail
-
process
final ProcessExecutable process(String $self)
-
process
final ProcessExecutable process(File $self, String arg)
-
run
final Unit run(Executable $self)
-
detach
final List<Process> detach(ProcessExecutable process)
-
pipeline
final Pipeline pipeline(SuspendFunction1<AbstractPipingDSLShell, Pipeline> pipelineConfig)
-
-
-
-