Skip to content

Instantly share code, notes, and snippets.

@MasseGuillaume
Last active April 29, 2017 21:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasseGuillaume/a8710bc665c2e18de0564a6450396183 to your computer and use it in GitHub Desktop.
Save MasseGuillaume/a8710bc665c2e18de0564a6450396183 to your computer and use it in GitHub Desktop.
scala.sys.process.ProcessBuilder

ProcessBuilder

Signature Proposed Name Scaladoc
!(log: ProcessLogger): Int exitValue Starts the process represented by this builder, blocks until it exits, and returns the exit code.
!: Int exitValue Ibid.
!<(log: ProcessLogger): Int exitValueStdIn Ibid.
!<: Int exitValueStdIn Ibid.
!!(log: ProcessLogger): String exitOutput Starts the process represented by this builder, blocks until it exits, and returns the output as a String.
!!: String exitOutput Ibid.
!!<(log: ProcessLogger): String exitOutputStdIn Ibid.
!!<: String exitOutputStdIn Ibid.
###(other: ProcessBuilder): ProcessBuilder also Constructs a command that will run this command and then other.
#&&(other: ProcessBuilder): ProcessBuilder and Constructs a command that runs this command first and then other if this command succeeds.
#│(other: ProcessBuilder): ProcessBuilder pipeTo Constructs a command that will run this command and pipes the output to other.
#││(other: ProcessBuilder): ProcessBuilder orElse Constructs a command that runs this command first and then other if this command does not succeed.
#<<(f: File): ProcessBuilder read Append the contents of a java.io.File to this file
#<<(u: URL): ProcessBuilder read Append the contents from a java.net.URL to this file
#<<(i: => InputStream): ProcessBuilder read Append the contents of a java.io.InputStream to this file
#<<(p: ProcessBuilder): ProcessBuilder read Append the contents of a [[scala.sys.process.ProcessBuilder]] to this file
#> (f: File): ProcessBuilder write Writes the output stream of this process to the given file.
#>> (f: File): ProcessBuilder append Appends the output stream of this process to the given file.
#>(out: => OutputStream): ProcessBuilder write Writes the output stream of this process to the given OutputStream. The argument is call-by-name, so the stream is recreated, written, and closed each time this process is executed.
#>(b: ProcessBuilder): ProcessBuilder write Writes the output stream of this process to a [[scala.sys.process.ProcessBuilder]].
lineStream_!(log: ProcessLogger): Stream[String] exitOutputToStream Starts the process represented by this builder.
lineStream_!: Stream[String] exitOutputToStream Ibid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment