mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -05:00

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.
3 lines
116 B
TypeScript
3 lines
116 B
TypeScript
console.log(Deno.env.get("FOO"));
|
|
console.log(Deno.env.get("ANOTHER_FOO"));
|
|
console.log(Deno.env.get("MULTILINE"));
|