Module scriptlike.process

Functions

NameDescription
run(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(command) Similar to run(), but (like std.process.executeShell) captures and returns the output instead of displaying it.
tryRun(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(command) Similar to tryRun(), but (like std.process.executeShell) captures and returns the output instead of displaying it.

Classes

NameDescription
ErrorLevelException Indicates a command returned a non-zero errorlevel.

Structs

NameDescription
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.

Aliases

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