Env

Stores and accesses loaded environment variables. All environment variables are case-insensitive, and their names are stored in upper case.

Members

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
keys
const(string[]) keys [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
values
const(string[]) values [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load(string fileName, bool copySystem)

Copies environment variables, then loads the dotenv file, if present. Variables declared in the .env file will override system environment variables. All variable names are case-insensitive, and are stored as upper case.

loadSystem
void loadSystem()

Loads system environment variables (but not the dotenv file).

opApply
int opApply(int delegate(string) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(string, string) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
string[string] opIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
string opIndex(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
string opIndexAssign(T value, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(string name)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

opDispatch
template opDispatch(string name)
Undocumented in source.

Meta