Piped

final case class Piped(left: Command, right: Command) extends Command
trait Serializable
trait Product
trait Equals
trait Command
class Object
trait Matchable
class Any

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).

Inherited from
Command
def >(redirectTo: File): Command

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

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

Inherited from
Command
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.

Inherited from
Command
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.

Inherited from
Command
def exitCode: ZIO[Blocking, CommandError, ExitCode]

Runs the command returning only the exit code.

Runs the command returning only the exit code.

Inherited from
Command
def flatten: NonEmptyChunk[Standard]

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.

Inherited from
Command

Inherit standard input, standard output, and standard error.

Inherit standard input, standard output, and standard error.

Inherited from
Command
def lines(charset: Charset): ZIO[Blocking, 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.

Inherited from
Command
def lines: ZIO[Blocking, CommandError, Chunk[String]]

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).

Inherited from
Command
def linesStream: ZStream[Blocking, CommandError, String]

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).

Inherited from
Command
def pipe(into: Command): Command

A named alias for |

A named alias for |

Inherited from
Command
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
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.

Inherited from
Command
def run: ZIO[Blocking, CommandError, Process]

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

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

Inherited from
Command

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

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

Inherited from
Command
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.

Inherited from
Command

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

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

Inherited from
Command
def stream: ZStream[Blocking, CommandError, Byte]

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

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

Inherited from
Command
def string(charset: Charset): ZIO[Blocking, 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.

Inherited from
Command
def string: ZIO[Blocking, CommandError, String]

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).

Inherited from
Command
def successfulExitCode: ZIO[Blocking, CommandError, ExitCode]

Runs the command returning only the exit code if zero.

Runs the command returning only the exit code if zero.

Inherited from
Command
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.

Inherited from
Command
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.

Inherited from
Command