mirror of
https://github.com/denoland/deno.git
synced 2025-02-06 06:32:09 -05:00
![Asher Gomez](/assets/img/avatar_default.png)
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"));
|