mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
![Bhuwan Pandit](/assets/img/avatar_default.png)
Closes #26425 ## Overview This PR adds support for specifying multiple environment files as arguments when using the Deno CLI. Subsequent files override pre-existing variables defined in previous files. If the same variable is defined in the environment and in the file, the value from the environment takes precedence. ## Example Usage ```bash deno run --allow-env --env-file --env-file=".env.one" --env-file=".env.two" script.ts ``` --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
4 lines
No EOL
69 B
Text
4 lines
No EOL
69 B
Text
FOO=BAR
|
|
ANOTHER_FOO=ANOTHER_${FOO}
|
|
MULTILINE="First Line
|
|
Second Line" |