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