ProcessConfiguration

io.github.vigoo.prox.ProcessModule.ProcessConfiguration

The capability to configure process execution details

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Process[O, E]
class ProcessImpl
class ProcessImplE[E]
class ProcessImplI
class ProcessImplIE[E]
class ProcessImplIO[O]
class ProcessImplIOE[O, E]
class ProcessImplO[O]
class ProcessImplOE[O, E]
Show all
Self type
Process[_, _]

Members list

Type members

Inherited types

Attributes

Inherited from:
ProcessLikeConfiguration

Value members

Abstract methods

protected def selfCopy(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): Self

Concrete methods

override protected def applyConfiguration(workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): Self

Attributes

Definition Classes
def withArguments(newArguments: List[String]): Self

Replaces the arguments

Replaces the arguments

Value parameters

newArguments

new list of arguments

Attributes

Returns

returns a new process specification

def withCommand(newCommand: String): Self

Replaces the command

Replaces the command

Value parameters

newCommand

new value for the command to be executed

Attributes

Returns

returns a new process specification

Inherited methods

def `with`(nameValuePair: (String, String)): Self

Adds an environment variable to the process

Adds an environment variable to the process

Value parameters

nameValuePair

A pair of name and value

Attributes

Returns

a new process with the working directory set

Inherited from:
ProcessLikeConfiguration
def in(workingDirectory: Path): Self

Changes the working directory of the process

Changes the working directory of the process

Value parameters

workingDirectory

the working directory

Attributes

Returns

a new process with the working directory set

Inherited from:
ProcessLikeConfiguration

Use the inherited working directory of the process instead of an explicit one

Use the inherited working directory of the process instead of an explicit one

Attributes

Returns

a new process with the working directory cleared

Inherited from:
ProcessLikeConfiguration
def without(name: String): Self

Removes an environment variable from the process

Removes an environment variable from the process

Usable to remove variables inherited from the parent process.

Value parameters

name

Name of the environment variable

Attributes

Returns

a new process with the working directory set

Inherited from:
ProcessLikeConfiguration

Inherited fields

val environmentVariables: Map[String, String]

Attributes

Inherited from:
ProcessLikeConfiguration
val removedEnvironmentVariables: Set[String]

Attributes

Inherited from:
ProcessLikeConfiguration
val workingDirectory: Option[Path]

Attributes

Inherited from:
ProcessLikeConfiguration