Loads environment variables from an explicitly named dotenv file.
File values take precedence over existing process environment variables.
Command frontends use --env-file FILE to choose the exact file; this module
does not search the invocation directory or its parents implicitly.
Examples
PtcRunner.Dotenv.load_file(".env")
Summary
Functions
Parse path as a .env file and set the variables it declares.
Types
Functions
@spec load_file(String.t()) :: :ok | {:error, file_error()}
Parse path as a .env file and set the variables it declares.
Lines are KEY=VALUE; blank lines and # comments are ignored. Surrounding
single or double quotes are stripped from the value. Declared values
overwrite existing environment variables.