envvars
nimony/lib/std/envvars.nim
proc getEnv(key: string; default: string): stringReturns the value of the
environment variable:idx: namedkey.If the variable does not exist,
""is returned. To distinguish whether a variable exists or it's value is just"", call existsEnv(key) proc.See also:
proc existsEnv(key: string): boolChecks whether the environment variable named
keyexists. Returns true if it exists, false otherwise.See also:
proc putEnv(key: string; val: string)Sets the value of the
environment variable:idx: namedkeytoval. If an error occurs,OSErroris raised.See also:
proc delEnv(key: string)Deletes the
environment variable:idx: namedkey. If an error occurs,OSErroris raised.See also:ven
iterator envPairs(): tuple[key: string, value: string]Iterate over all
environments variables:idx:.In the first component of the tuple is the name of the current variable stored, in the second its value.
See also: