dsh

DSH provides conveniences that make it easier to write simple scripts in D.

Several phobos modules are preemptively imported so that you don't need to do so in your script. Additionally, helper functions are defined which are especially useful for scripts.

Public Imports

std.stdio
public import std.stdio;
Undocumented in source.
std.file
public import std.file;
Undocumented in source.

Members

Classes

ProcessBuilder
class ProcessBuilder

Helper for more easily creating processes.

Functions

getEnv
string getEnv(string key)

Gets an environment variable.

isDirEmpty
bool isDirEmpty(string dir)

Checks if a directory is empty.

run
int run(string cmd)

Runs the given command using the user's shell.

setEnv
void setEnv(string key, string value)

Sets an environment variable.

Meta