1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/cli/args
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
..
deno_json.rs BREAKING(config): make supported compilerOptions an allow list (#25432) 2024-09-04 17:39:30 +02:00
flags.rs feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
flags_net.rs refactor(runtime/permissions): use concrete error types (#26464) 2024-11-04 09:17:21 -08:00
import_map.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
lockfile.rs feat(byonm): support deno run npm:<package> when package is not in package.json (#25981) 2024-10-02 21:17:39 +01:00
mod.rs feat(cli): support multiple env file argument (#26527) 2024-11-17 22:49:35 +00:00
package_json.rs fix: surface package.json location on dep parse failure (#26665) 2024-10-31 15:35:17 +00:00