Instance Method
load(overwrite:)
Loads this file’s
KEY=VALUE pairs into the current process.func load(overwrite: Bool = false)
Parameters
overwriteIf
true, values already existing in the process’ env will be overwritten. Defaults tofalse.
Discussion
let file: DotEnvFile
file.load(overwrite: true) // loads all lines into the process