← ZIO Process docs

Standard

zio.process.Command.Standard
final case class Standard(command: NonEmptyChunk[String], env: Map[String, String], workingDirectory: Option[File], stdin: ProcessInput, stdout: ProcessOutput, stderr: ProcessOutput, redirectErrorStream: Boolean) extends Command

Attributes

Source
Command.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Command
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def <<(input: String): Command

Feed a string to standard input (default encoding of UTF-8).

Feed a string to standard input (default encoding of UTF-8).

Attributes

Inherited from:
Command
Source
Command.scala
def >(redirectTo: File): Command

Redirect standard output to a file, overwriting any existing content.

Redirect standard output to a file, overwriting any existing content.

Attributes

Inherited from:
Command
Source
Command.scala
def >>(redirectTo: File): Command

Redirect standard output to a file, appending content to the file if it already exists.

Redirect standard output to a file, appending content to the file if it already exists.

Attributes

Inherited from:
Command
Source
Command.scala
protected def build(c: Standard, piping: Option[InputStream]): ZIO[Any, Throwable, Process]

Attributes

Inherited from:
CommandPlatformSpecific (hidden)
Source
CommandPlatformSpecific.scala
protected def checkDirectory(dir: File): Boolean

Attributes

Inherited from:
CommandPlatformSpecific (hidden)
Source
CommandPlatformSpecific.scala
protected def connectStdin(process: Process, stdin: ProcessInput): ZIO[Any, CommandError, Unit]

Attributes

Inherited from:
CommandPlatformSpecific (hidden)
Source
CommandPlatformSpecific.scala
def env(env: Map[String, String]): Command

Specify the environment variables that will be used when running this command.

Specify the environment variables that will be used when running this command.

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning only the exit code.

Runs the command returning only the exit code.

Attributes

Inherited from:
Command
Source
Command.scala

Flatten this command to a non-empty chunk of standard commands. For the standard case, this simply returns a 1 element chunk. For the piped case, all the commands in the pipe will be extracted out into a chunk from left to right.

Flatten this command to a non-empty chunk of standard commands. For the standard case, this simply returns a 1 element chunk. For the piped case, all the commands in the pipe will be extracted out into a chunk from left to right.

Attributes

Inherited from:
Command
Source
Command.scala

Inherit standard input, standard output, and standard error.

Inherit standard input, standard output, and standard error.

Attributes

Inherited from:
Command
Source
Command.scala
def lines(charset: Charset): ZIO[Any, CommandError, Chunk[String]]

Runs the command returning the output as a list of lines with the specified encoding.

Runs the command returning the output as a list of lines with the specified encoding.

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning the output as a list of lines (default encoding of UTF-8).

Runs the command returning the output as a list of lines (default encoding of UTF-8).

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning the output as a stream of lines (default encoding of UTF-8).

Runs the command returning the output as a stream of lines (default encoding of UTF-8).

Attributes

Inherited from:
Command
Source
Command.scala
def pipe(into: Command): Command

A named alias for |

A named alias for |

Attributes

Inherited from:
Command
Source
Command.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def redirectErrorStream(redirectErrorStream: Boolean): Command

Redirect the error stream to be merged with the standard output stream.

Redirect the error stream to be merged with the standard output stream.

Attributes

Inherited from:
Command
Source
Command.scala
def run: ZIO[Any, CommandError, Process]

Start running the command returning a handle to the running process.

Start running the command returning a handle to the running process.

Attributes

Inherited from:
Command
Source
Command.scala
def stderr(stderr: ProcessOutput): Command

Specify what to do with the standard error of this command.

Specify what to do with the standard error of this command.

Attributes

Inherited from:
Command
Source
Command.scala
def stdin(stdin: ProcessInput): Command

Specify what to do with the standard input of this command.

Specify what to do with the standard input of this command.

Attributes

Inherited from:
Command
Source
Command.scala
def stdout(stdout: ProcessOutput): Command

Specify what to do with the standard output of this command.

Specify what to do with the standard output of this command.

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning the output as a chunked stream of bytes.

Runs the command returning the output as a chunked stream of bytes.

Attributes

Inherited from:
Command
Source
Command.scala
def string(charset: Charset): ZIO[Any, CommandError, String]

Runs the command returning the entire output as a string with the specified encoding.

Runs the command returning the entire output as a string with the specified encoding.

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning the entire output as a string (default encoding of UTF-8).

Runs the command returning the entire output as a string (default encoding of UTF-8).

Attributes

Inherited from:
Command
Source
Command.scala

Runs the command returning only the exit code if zero.

Runs the command returning only the exit code if zero.

Attributes

Inherited from:
Command
Source
Command.scala
def workingDirectory(workingDirectory: File): Command

Set the working directory that will be used when this command will be run. For the piped case, each piped command's working directory will also be set.

Set the working directory that will be used when this command will be run. For the piped case, each piped command's working directory will also be set.

Attributes

Inherited from:
Command
Source
Command.scala
def |(into: Command): Command

Pipe the output of this command into the input of the specified command.

Pipe the output of this command into the input of the specified command.

Attributes

Inherited from:
Command
Source
Command.scala