From f8f4e776325efe0d8dd50207beecb425f0875999 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 2 Nov 2023 02:21:13 +1100 Subject: feat(unstable): `deno run --env` (#20300) This change adds the `--env=[FILE]` flag to the `run`, `compile`, `eval`, `install` and `repl` subcommands. Environment variables set in the CLI overwrite those defined in the `.env` file. --- cli/tests/testdata/run/env_file.out | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/testdata/run/env_file.out (limited to 'cli/tests/testdata/run/env_file.out') diff --git a/cli/tests/testdata/run/env_file.out b/cli/tests/testdata/run/env_file.out new file mode 100644 index 000000000..54a0bf25d --- /dev/null +++ b/cli/tests/testdata/run/env_file.out @@ -0,0 +1,4 @@ +BAR +ANOTHER_BAR +First Line +Second Line -- cgit v1.2.3