Packages

case class ProcessImplO[F[_], O](command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String], outputRedirection: OutputRedirection[F], runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[O], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[Unit], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F]) extends Process[F, O, Unit] with RedirectableError[F, [γ$10$]ProcessImplOE[F, O, γ$10$]] with RedirectableInput[F, ProcessImplIO[F, O]] with Product with Serializable

Process with bound output streams

Linear Supertypes
Serializable, Product, Equals, RedirectableInput[F, ProcessImplIO[F, O]], RedirectableError[F, [γ$10$]ProcessImplOE[F, O, γ$10$]], Process[F, O, Unit], ProcessConfiguration[F], ProcessLikeConfiguration[F], ProcessLike[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessImplO
  2. Serializable
  3. Product
  4. Equals
  5. RedirectableInput
  6. RedirectableError
  7. Process
  8. ProcessConfiguration
  9. ProcessLikeConfiguration
  10. ProcessLike
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ProcessImplO(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String], outputRedirection: OutputRedirection[F], runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[O], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[Unit], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F])

Type Members

  1. type Self = ProcessImplO[F, O]

Value Members

  1. def !<(stream: Stream[F, Byte]): ProcessImplIO[F, O]

    Feed the process input from a byte stream with flushing per chunks enabled.

    Feed the process input from a byte stream with flushing per chunks enabled.

    An alias for fromStream.

    stream

    Input stream

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. def !>(path: Path): ProcessImplOE[F, O, Unit]

    Redirects the error output to a file natively

    Redirects the error output to a file natively

    An alias for errorToFile

    path

    Target file path

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  4. def !>(sink: Pipe[F, Byte, Unit]): ProcessImplOE[F, O, Unit]

    Redirects the error output to a sink.

    Redirects the error output to a sink.

    The process error output type will be Unit. An alias for errorToSink

    sink

    Target sink

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  5. def !>#[O](pipe: Pipe[F, Byte, O])(implicit arg0: Monoid[O]): ProcessImplOE[F, O, O]

    Redirects the error output to a pipe and folds its output with a monoid instance.

    Redirects the error output to a pipe and folds its output with a monoid instance.

    The process error output type will be the same as the pipe's output type. An alias for errorToFoldMonoid

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  6. def !>>(path: Path): ProcessImplOE[F, O, Unit]

    Redirects the error output to a file natively in append mode

    Redirects the error output to a file natively in append mode

    An alias for appendErrorToFile

    path

    Target file path

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  7. def !>?[O](pipe: Pipe[F, Byte, O]): ProcessImplOE[F, O, Vector[O]]

    Redirects the error output to a pipe and collects its output to a vector

    Redirects the error output to a pipe and collects its output to a vector

    The process error output type will be a vector of the pipe's output type. An alias for errorToVector

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  8. final def ##: Int
    Definition Classes
    AnyRef → Any
  9. def <(stream: Stream[F, Byte]): ProcessImplIO[F, O]

    Feed the process input from a byte stream.

    Feed the process input from a byte stream.

    An alias for fromStream.

    stream

    Input stream

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  10. def <(path: Path): ProcessImplIO[F, O]

    Feed the process input from a file natively.

    Feed the process input from a file natively.

    An alias for fromFile.

    path

    Path to the file

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def appendErrorToFile(path: Path): ProcessImplOE[F, O, Unit]

    Redirects the error output to a file natively in append mode

    Redirects the error output to a file natively in append mode

    An alias for !>>

    path

    Target file path

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  13. def applyConfiguration(workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): Self
    Attributes
    protected
    Definition Classes
    ProcessConfigurationProcessLikeConfiguration
  14. val arguments: List[String]
    Definition Classes
    ProcessImplOProcess
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. val command: String
    Definition Classes
    ProcessImplOProcess
  18. implicit val concurrent: Concurrent[F]
    Definition Classes
    ProcessImplORedirectableErrorProcess
  19. def connectError[R <: OutputRedirection[F], RE](target: R)(implicit outputRedirectionType: Aux[F, R, RE]): ProcessImplOE[F, O, RE]

    The low level operation to attach an error output to a process

    The low level operation to attach an error output to a process

    Use one of the other methods of this trait for convenience. This is the place where the output type gets calculated with a helper type class called OutputRedirectionType which implements the type level computation for figuring out E.

    R

    Error output redirection type

    target

    Redirection target

    outputRedirectionType

    Helper for dependent error output type

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    ProcessImplORedirectableError
  20. def connectInput(source: InputRedirection[F]): ProcessImplIO[F, O]

    The low level method to attach an input to a process or process group.

    The low level method to attach an input to a process or process group.

    Use the other methods in this trait for convenience.

    source

    Redirection source

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    ProcessImplORedirectableInput
  21. def drainError[O](pipe: Pipe[F, Byte, O]): ProcessImplOE[F, O, Unit]

    Redirects the error output to a pipe and drains it regardless of its output type.

    Redirects the error output to a pipe and drains it regardless of its output type.

    The process error output type will be Unit.

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  22. val environmentVariables: Map[String, String]
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. val errorRedirection: OutputRedirection[F]
    Definition Classes
    ProcessImplOProcess
  25. def errorToFile(path: Path): ProcessImplOE[F, O, Unit]

    Redirects the error output to a file natively

    Redirects the error output to a file natively

    An alias for !>

    path

    Target file path

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  26. def errorToFoldMonoid[O](pipe: Pipe[F, Byte, O])(implicit arg0: Monoid[O]): ProcessImplOE[F, O, O]

    Redirects the error output to a pipe and folds its output with a monoid instance.

    Redirects the error output to a pipe and folds its output with a monoid instance.

    The process error output type will be the same as the pipe's output type. An alias for !>#

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  27. def errorToSink(sink: Pipe[F, Byte, Unit]): ProcessImplOE[F, O, Unit]

    Redirects the error output to a sink.

    Redirects the error output to a sink.

    The process error output type will be Unit. An alias for !>

    sink

    Target sink

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  28. def errorToVector[O](pipe: Pipe[F, Byte, O]): ProcessImplOE[F, O, Vector[O]]

    Redirects the error output to a pipe and collects its output to a vector

    Redirects the error output to a pipe and collects its output to a vector

    The process error output type will be a vector of the pipe's output type. An alias for !>?

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  29. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  30. def foldError[O, R](pipe: Pipe[F, Byte, O], init: R, fn: (R, O) => R): ProcessImplOE[F, O, R]

    Redirects the error output to a pipe and folds it with a custom function.

    Redirects the error output to a pipe and folds it with a custom function.

    The process error output type will be R.

    O

    Output type of the pipe

    R

    Result type of the fold

    pipe

    Target pipe

    init

    The initial value for the fold

    fn

    The fold function

    returns

    Returns a new process with its error output redirected and its error redirection capability removed.

    Definition Classes
    RedirectableError
  31. def fromFile(path: Path): ProcessImplIO[F, O]

    Feed the process input from a file natively.

    Feed the process input from a file natively.

    An alias for <.

    path

    Path to the file

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  32. def fromStream(stream: Stream[F, Byte], flushChunks: Boolean): ProcessImplIO[F, O]

    Feed the process input from a byte stream.

    Feed the process input from a byte stream.

    An alias for < and !<.

    stream

    Input stream

    flushChunks

    Flush the process input stream after each chunk

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def in(workingDirectory: Path): Self

    Changes the working directory of the process

    Changes the working directory of the process

    workingDirectory

    the working directory

    returns

    a new process with the working directory set

    Definition Classes
    ProcessLikeConfiguration
  35. def inInheritedWorkingDirectory(): Self

    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

    returns

    a new process with the working directory cleared

    Definition Classes
    ProcessLikeConfiguration
  36. val inputRedirection: InputRedirection[F]
    Definition Classes
    ProcessImplOProcess
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. val outputRedirection: OutputRedirection[F]
    Definition Classes
    ProcessImplOProcess
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. val removedEnvironmentVariables: Set[String]
  44. def run(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[ProcessResult[O, Unit]]

    Starts the process asynchronously and blocks the execution until it is finished

    Starts the process asynchronously and blocks the execution until it is finished

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    the result of the finished process

    Definition Classes
    Process
  45. val runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[Unit]
    Definition Classes
    ProcessImplOProcess
  46. val runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) => F[O]
    Definition Classes
    ProcessImplOProcess
  47. def selfCopy(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): ProcessImplO[F, O]
    Attributes
    protected
    Definition Classes
    ProcessImplOProcessConfiguration
  48. def start(blocker: Blocker)(implicit runner: ProcessRunner[F]): Resource[F, Fiber[F, ProcessResult[O, Unit]]]

    Starts the process asynchronously and returns a closeable fiber representing it

    Starts the process asynchronously and returns a closeable fiber representing it

    Joining the fiber waits for the process to be terminated. Canceling the fiber terminates the process normally (with SIGTERM).

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    a managed fiber representing the running process

    Definition Classes
    Process
  49. def startProcess(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[RunningProcess[F, O, Unit]]

    Starts the process asynchronously and returns the RunningProcess interface for it

    Starts the process asynchronously and returns the RunningProcess interface for it

    This is the most advanced way to start processes. See start and run as alternatives.

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    interface for handling the running process

    Definition Classes
    Process
  50. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. def with(nameValuePair: (String, String)): Self

    Adds an environment variable to the process

    Adds an environment variable to the process

    nameValuePair

    A pair of name and value

    returns

    a new process with the working directory set

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

    Replaces the arguments

    Replaces the arguments

    newArguments

    new list of arguments

    returns

    returns a new process specification

    Definition Classes
    ProcessConfiguration
  56. def withCommand(newCommand: String): Self

    Replaces the command

    Replaces the command

    newCommand

    new value for the command to be executed

    returns

    returns a new process specification

    Definition Classes
    ProcessConfiguration
  57. 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.

    name

    Name of the environment variable

    returns

    a new process with the working directory set

    Definition Classes
    ProcessLikeConfiguration
  58. val workingDirectory: Option[Path]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RedirectableInput[F, ProcessImplIO[F, O]]

Inherited from RedirectableError[F, [γ$10$]ProcessImplOE[F, O, γ$10$]]

Inherited from Process[F, O, Unit]

Inherited from ProcessConfiguration[F]

Inherited from ProcessLikeConfiguration[F]

Inherited from ProcessLike[F]

Inherited from AnyRef

Inherited from Any

Ungrouped