Trait/Object

zio.process

Command

Related Docs: object Command | package process

Permalink

sealed trait Command extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Command
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <<(input: String): Command

    Permalink

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

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def >(redirectTo: File): Command

    Permalink

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

  6. def >>(redirectTo: File): Command

    Permalink

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

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def env(env: Map[String, String]): Command

    Permalink

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

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def exitCode: ZIO[Blocking, CommandError, ExitCode]

    Permalink

    Runs the command returning only the exit code.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatten: NonEmptyChunk[Standard]

    Permalink

    Flatten this command to a non-empty chunk of standard commands.

    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.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def inheritIO: Command

    Permalink

    Inherit standard input, standard output, and standard error.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def lines(charset: Charset): ZIO[Blocking, CommandError, Chunk[String]]

    Permalink

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

  20. def lines: ZIO[Blocking, CommandError, Chunk[String]]

    Permalink

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

  21. def linesStream: ZStream[Blocking, CommandError, String]

    Permalink

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

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def pipe(into: Command): Command

    Permalink

    A named alias for |

  26. def redirectErrorStream(redirectErrorStream: Boolean): Command

    Permalink

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

  27. def run: ZIO[Blocking, CommandError, Process]

    Permalink

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

  28. def stderr(stderr: ProcessOutput): Command

    Permalink

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

  29. def stdin(stdin: ProcessInput): Command

    Permalink

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

  30. def stdout(stdout: ProcessOutput): Command

    Permalink

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

  31. def stream: ZIO[Blocking, CommandError, ZStream[Blocking, CommandError, Byte]]

    Permalink

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

  32. def string(charset: Charset): ZIO[Blocking, CommandError, String]

    Permalink

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

  33. def string: ZIO[Blocking, CommandError, String]

    Permalink

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

  34. def successfulExitCode: ZIO[Blocking, CommandError, ExitCode]

    Permalink

    Runs the command returning only the exit code if zero.

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def workingDirectory(workingDirectory: File): Command

    Permalink

    Set the working directory that will be used when this command will be run.

    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.

  41. def |(into: Command): Command

    Permalink

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

Inherited from AnyRef

Inherited from Any

Ungrouped