sealed trait Command extends AnyRef
- Alphabetic
- By Inheritance
- Command
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<<(input: String): Command
Feed a string to standard input (default encoding of UTF-8).
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(redirectTo: File): Command
Redirect standard output to a file, overwriting any existing content.
-
def
>>(redirectTo: File): Command
Redirect standard output to a file, appending content to the file if it already exists.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
env(env: Map[String, String]): Command
Specify the environment variables that will be used when running this command.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exitCode: RIO[Blocking, Int]
Runs the command returning only the exit code.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatten: Vector[Standard]
Flatten this command to a vector of standard commands.
Flatten this command to a vector of standard commands. For the standard case, this simply returns a 1 element vector. For the piped case, all the commands in the pipe will be extracted out into a Vector from left to right.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inheritIO: Command
Inherit standard input, standard output, and standard error.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lines(charset: Charset): RIO[Blocking, List[String]]
Runs the command returning the output as a list of lines with the specified encoding.
-
def
lines: RIO[Blocking, List[String]]
Runs the command returning the output as a list of lines (default encoding of UTF-8).
-
def
linesStream: ZStream[Blocking, Throwable, String]
Runs the command returning the output as a stream of lines (default encoding of UTF-8).
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pipe(into: Command): Command
A named alias for
| -
def
redirectErrorStream(redirectErrorStream: Boolean): Command
Redirect the error stream to be merged with the standard output stream.
-
def
run: RIO[Blocking, Process]
Start running the command returning a handle to the running process.
-
def
stderr(stderr: ProcessOutput): Command
Specify what to do with the standard error of this command.
-
def
stdin(stdin: ProcessInput): Command
Specify what to do with the standard input of this command.
-
def
stdout(stdout: ProcessOutput): Command
Specify what to do with the standard output of this command.
-
def
stream: RIO[Blocking, StreamChunk[Throwable, Byte]]
Runs the command returning the output as a chunked stream of bytes.
-
def
string(charset: Charset): RIO[Blocking, String]
Runs the command returning the entire output as a string with the specified encoding.
-
def
string: RIO[Blocking, String]
Runs the command returning the entire output as a string (default encoding of UTF-8).
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
workingDirectory(workingDirectory: File): Command
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.
-
def
|(into: Command): Command
Pipe the output of this command into the input of the specified command.