<p dir="auto"><code class="notranslate">cli/js/</code> directory holds all of internal runtime code. Due to the way we ship the code, we ended up with situation where some of the docstrings are duplicated in declaration files (<code class="notranslate">lib.deno.ns.d.ts</code>, et al) as well as implementation files. It's mundane and error-prone to synchronise them manually so until we bring back auto-generation of declaration files docstrings should be removed from implementation code (that means docstrings should be left only in declaration files).</p>
<p dir="auto">There is a thread about limiting <code class="notranslate">--allow-env</code> variables to some explicit keys.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="508068588" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3137" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3137/hovercard" href="https://github.com/denoland/deno/issues/3137">#3137</a></p>
<p dir="auto">This issue is a bit different. Instead of allowing access to environment at runtime at all, the user should be able to <em>provide</em> environment values during startup with the <code class="notranslate">--env</code> flag <code class="notranslate">--env SECRET=secret</code>. If possible, it would be great to have the ability to use it multiple times (in multiple lines) like the <code class="notranslate">-e</code> from Docker</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run \
  --allow-net \
  --env SECRET=$SOME_SECRET \
  --env OPTION_X=true \
  --env URL \ # provide systems variable
  main.ts"><pre class="notranslate"><code class="notranslate">deno run \
  --allow-net \
  --env SECRET=$SOME_SECRET \
  --env OPTION_X=true \
  --env URL \ # provide systems variable
  main.ts
</code></pre></div>
<p dir="auto">Pros: All Env are still protected<br>
Cons: immutable. To have access to new values, one would need to restart the program. (lets call it a feature)</p>