Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.FluidCommandRunner

Summary

Implements method chaining for CommandRunner.Run(params string[]).

Instance methods

FluidCommandRunner
FailExitCodes(params int[] exitCodes)
Specifies which exit codes represent a failed invocation. All other codes are interpreted as success. Mutually exclusive with FluidCommandRunner.SuccessExitCodes(params int[]).
void
Go()
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. (see also 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. (see also remarks)
FluidCommandRunner
OutputAugmented(bool invokeCount = false)
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
SuccessExitCodes(params int[] exitCodes)
Specifies which exit codes represent a successful invocation. All other codes are interpreted as failure.
FluidCommandRunner
WithWorkingDirectory(string workingDir)
Sets the working directory for the command to the specified directory.