ae.sys.cmd

Simple execution of shell commands, and wrappers for common utilities.

Members

Functions

pipe
T[] pipe(string[] args, in T[] input, Params params)

std.process helper. Run a command, feed it the given input, and collect its output. Throw if it exited with non-zero status. Return output.

query
string query(string[] args, Params params)

std.process helper. Run a command and collect its output. Throw if it exited with a non-zero status.

run
void run(string[] args, Params params)

std.process helper. Run a command, and throw if it exited with a non-zero status.

setEnvironment
void setEnvironment(string[string] env)

Reverse of std.process.environment.toAA

waitAsync
void waitAsync(Pid pid, void delegate(int) callback = null)

Wait for process to exit asynchronously. Call callback when it exits. WARNING: the callback will be invoked in another thread!

Meta

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.