1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 13:22:55 -05:00
denoland-deno/tests/specs/run/env_file
Bhuwan Pandit cff6e280c7
feat(cli): support multiple env file argument (#26527)
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>
2024-11-17 22:49:35 +00:00
..
__test__.jsonc feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_file.out feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_file.ts feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_file_missing.out feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_one feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_two feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_unparseable feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
env_unparseable.out feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
multiple_env_file.out feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00