Dotenvy.load
You're seeing just the function
load
, go back to Dotenvy module for more information.
Specs
Loads one or more .env
files and sets system environment variables.
Files are loaded in the order they are given. Values in the last file will override
conflicting values set in previous files.
Options
:overwrite?
boolean indicating whether or not values parsed from provided.env
files should overwrite existing system environment variables. Default:false
:parser
module that parses the given file(s). Overridable for testing. Default:Dotenv.Parser
:required_files
specifies which of the givenfiles
(if any) must be present. Whentrue
, all the listed files must exist. Whenfalse
, none of the listed files must exist. When some of the files are required and some are optional, provide a list specifying which files are required.:side_effect
an arity 1 function called after the successful parsing of each of the given files. The default is&System.put_env/1
, which will have the effect of setting system environment variables based on the results of the file parsing.:vars
a map with string keys representing the starting pool of variables. Defaults to the output ofSystem.get_env/0
; overridable for testing.