Expand description
§envfury
A collection of utilities for procedural reading of the process environment variables.
Structs§
- Error
- Error from reading the env var.
Enums§
- Must
Error - Error while processing a required variable.
- OrParse
Error - Error while processing a variable or parsing it’s default.
- Value
Error - Error while processing the value.
Functions§
- maybe
- Get the value of environment variable
keyand parse it into the typeTif variable is set. If the variable is not set - returnsNone. Returns an error if the value is an invalid unicode or if the value could not be parsed. - must
- Get the value of environment variable
keyand parse it into the typeTif variable is set. Returns an error if the value is not set, is an invalid unicode or if the value could not be parsed. - or
- Get the value of environment variable
keyand parse it into the typeTif variable is set. If the variable is not set - returns thedefaultargument. Returns an error if the value is an invalid unicode or if the value could not be parsed. - or_else
- Get the value of environment variable
keyand parse it into the typeTif variable is set. If the variable is not set - returns the result of calling thedefaultargument. Returns an error if the value is an invalid unicode or if the value could not be parsed. - or_
parse - Get the value of environment variable
keyand parse it into the typeTif variable is set. If the variable is not set - returns the result of calling thedefaultand parsing the default argument. Returns an error if the variable value is an invalid unicode or if the value could not be parsed, or if the default could not be parsed.