scriptlike.process

Members

Aliases

runShell
alias runShell = tryRun

Backwards-compatibility alias. runShell may become deprecated in the future, so you should use tryRun or run insetad.

Classes

ErrorLevelException
class ErrorLevelException

Indicates a command returned a non-zero errorlevel.

Functions

run
void run(string command)
void run(Path workingDirectory, string command)

Runs a command, through the system's command shell interpreter, in typical shell-script style: Synchronously, with the command's stdout/in/err automatically forwarded through your program's stdout/in/err.

runCollect
string runCollect(string command)
string runCollect(Path workingDirectory, string command)

Similar to run(), but (like std.process.executeShell) captures and returns the output instead of displaying it.

tryRun
int tryRun(string command)
int tryRun(Path workingDirectory, string command)

Runs a command, through the system's command shell interpreter, in typical shell-script style: Synchronously, with the command's stdout/in/err automatically forwarded through your program's stdout/in/err.

tryRunCollect
auto tryRunCollect(string command)
auto tryRunCollect(Path workingDirectory, string command)

Similar to tryRun(), but (like $(FULL_STD_PROCESS executeShell)) captures and returns the output instead of displaying it.

Structs

Args
struct Args

Much like std.array.Appender!string, but specifically geared towards building a command string out of arguments. String and Path can both be appended. All elements added will automatically be escaped, and separated by spaces, as necessary.

Meta

Authors

Nick Sabalausky