Process
eff Process
SourceAn effect used to start a process outside the JVM.
All operations on this effect are infallible. If an operation fails the handler must deal with it.
Operations
def execWithCwdAndEnv(cmd: String, args: List[String], cwd: Option[String], env: Map[String, String]): ProcessHandle
SourceImmediately executes the command cmd
with the arguments args
, by the path cwd
and with the environmental env
.
Definitions
def exec(cmd: String, args: List[String]): ProcessHandle \ Process
SourceExecutes the command cmd
with the arguments args
.
def execWithCwd(cmd: String, args: List[String], cwd: Option[String]): ProcessHandle \ Process
SourceExecutes the command cmd
with the arguments args
, by the path cwd
.
def execWithEnv(cmd: String, args: List[String], env: Map[String, String]): ProcessHandle \ Process
SourceExecutes the command cmd
with the arguments args
and with the environmental env
.
def handle(f: a -> b \ ef): a -> Result[IoError, b] \ (ef - Process) + Exec + IO
SourceHandles the Process
effect of the given function f
.
In other words, re-interprets the Process
effect using the Exec
effect.
def runWithIO(f: Unit -> a \ ef): Result[IoError, a] \ (ef - Process) + Exec + IO
SourceRuns the Process
effect of the given function f
.
In other words, re-interprets the Process
effect using the Exec
effect.