ae.sys.cmd

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

Members

Aliases

NULL_FILE
deprecated alias NULL_FILE = nullFileName
Undocumented in source.
expandWindowsEnvVars
alias expandWindowsEnvVars = expandEnvVars!(re!`(%(.*?)%)`)
Undocumented in source.

Functions

expandEnvVars
string expandEnvVars(string s, string[string] env)
Undocumented in source. Be warned that the author may not have intended to support it.
getCurrentThreadID
ulong getCurrentThreadID()
Undocumented in source. Be warned that the author may not have intended to support it.
getTempFileName
string getTempFileName(string extension)
Undocumented in source. Be warned that the author may not have intended to support it.
iconv
ubyte[] iconv(void[] data, string inputEncoding, string outputEncoding)
Undocumented in source. Be warned that the author may not have intended to support it.
iconv
string iconv(void[] data, string inputEncoding)
Undocumented in source. Be warned that the author may not have intended to support it.
pipe
T[] pipe(string[] args, 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

sha1sum
string sha1sum(void[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
waitTimeout
int waitTimeout(Pid pid, Duration time)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

ProcessParams
struct ProcessParams
Undocumented in source.

Meta

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

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>