Summary
Implements method chaining for
CommandRunner.Run(params string[]).
Instance methods
FluidCommandRunner | |
Specifies which exit codes represent a failed invocation. All other codes are interpreted as success. Mutually
exclusive with FluidCommandRunner.SuccessExitCodes(params int[]). |
void | |
Invokes the command, blocking until the command finishes. If the command fails, throws a CommandRunnerFailedException. See also FluidCommandRunner.GoGetExitCode(). |
int | |
Invokes the command, blocking until the command finishes. Returns the command's exit code. Does not throw if
the command failed. |
byte[] | |
Invokes the command, blocking until the command finishes. On success, returns the raw output of the command.
If the command fails, throws a CommandRunnerFailedException. See Remarks. |
string | |
Invokes the command, blocking until the command finishes. On success, returns the raw output of the command,
interpreted as text in UTF-8. If the command fails, throws a CommandRunnerFailedException. See
Remarks. |
FluidCommandRunner | |
Configures the runner to relay the command's output to the console, prefixing every line with a timestamp. The
entire command is printed before running it. When the command completes, its success/failure status is
printed, along with its run time and exit code. |
FluidCommandRunner | |
Configures the runner to suppress all output. This invocation will print nothing to the console. If
unspecified, the command's stdout output is relayed to the console as-is, while stderr is relayed in red. |
FluidCommandRunner | | Specifies which exit codes represent a successful invocation. All other codes are interpreted as failure. |
FluidCommandRunner | | Sets the working directory for the command to the specified directory. |