Std.Process
31 public declarations
- begin
&Std.Process.Launch -> Result[Std.Process.Started, Str]Start a launch and answer without waiting for it.
- chunkSize
IntHow many bytes a read asks for at once.
- closeInput
&Std.Process.Started -> Result[(), Str]Tell a program there is no more input.
- describe
&Std.Process.Finished -> StrA finished program described the way an error message should say it.
- drain
&Std.Process.Started -> Result[Str, Str]Everything a program writes, read until it stops writing.
- Finished
What a program left behind when it finished.
- isAvailable
Str -> BoolWhether a program can be found and run at all.
- isSuccess
&Std.Process.Finished -> BoolWhether a program reported success.
- launch
Str -> &Array[Str] -> Std.Process.LaunchA launch of a program with arguments, inheriting this program's environment
- Launch
How a program is to be started: what runs, its arguments, the variables it
- Launching
A launch with one thing changed, each answering a launch.
- lines
Str -> &Array[Str] -> Result[Array[Str], Str]Run a program and answer with its output in lines.
- output
Str -> &Array[Str] -> Result[Str, Str]Run a program and answer with its output, treating a non-zero status as a
- pipe
Str -> &Array[Str] -> Str -> &Array[Str] -> Result[Std.Process.Finished, Str]Feed one program's output into another's input, and answer what comes out.
- read
&Std.Process.Started -> Result[Option[Bytes], Str]Read what a program has written since the last read.
- readErrors
&Std.Process.Started -> Result[Option[Bytes], Str]The same for what a program wrote to its error stream.
- run
Str -> &Array[Str] -> Result[Std.Process.Finished, Str]Run a program with arguments and no input, and collect what it produced.
- runLaunch
&Std.Process.Launch -> Str -> Result[Std.Process.Finished, Str]Run a launch to completion with text on its input.
- start
Str -> &Array[Str] -> Result[Std.Process.Started, Str]Start a program and answer without waiting for it.
- Started
A program that was started and has not been waited for.
- status
Str -> &Array[Str] -> Result[Int, Str]Run a program only for its status.
- stop
&Std.Process.Started -> Result[Int, Str]Stop a program, and wait until it is actually gone.
- succeeded
Str -> &Array[Str] -> BoolWhether a program ran and reported success.
- trimmedOutput
&Std.Process.Finished -> StrThe output with trailing whitespace removed, which is what a program that
- wait
&Std.Process.Started -> Result[Int, Str]Wait for a program to finish, and answer the status it left.
- waitWithin
&Std.Process.Started -> Int -> Result[Option[Int], Str]Wait a bounded time, answering nothing if the program is still running.
- within
Str -> &Array[Str] -> Int -> Result[Option[Std.Process.Finished], Str]Run a program, and stop it if it takes longer than it is allowed.
- withInput
Str -> &Array[Str] -> Str -> Result[Std.Process.Finished, Str]Run a program with arguments and text on its input.
- withStarted
&Std.Process.Launch -> fn(&Std.Process.Started) -> Result[T, Str] -> Result[T, Str]An action given a started program that is stopped when the action returns.
- write
&Std.Process.Started -> &Bytes -> Result[(), Str]Write to a program's input.
- writeText
&Std.Process.Started -> Str -> Result[(), Str]Write text to a program's input.
