Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

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 to false.

Discussion

let file: DotEnvFile
file.load(overwrite: true) // loads all lines into the process