dalicious.process

Convenience wrappers for executing subprocesses.

Members

Functions

executeCommand
string executeCommand(Range command, string workdir, LogLevel logLevel)

Execute command and return the output. Logs execution and throws an exception on failure.

executeScript
string executeScript(Range script, string workdir, LogLevel logLevel)

Execute script and return the output. Logs execution on LogLevel.diagnostic and throws an exception on failure.

executeShell
string executeShell(Range shellCommand, string workdir, LogLevel logLevel)

Execute shellCommand and return the output. Logs execution on LogLevel.diagnostic and throws an exception on failure.

isExecutable
bool isExecutable(string name, Flag!"searchPath" searchPath)

Returns true iff name can be executed via the process function in std.process. By default, PATH will be searched if name does not contain directory separators.

pipeLines
auto pipeLines(Range command, string workdir)
auto pipeLines(string shellCommand, string workdir)

Run command and returns an input range of the output lines.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>