Skip to content

Commit

Permalink
Add tip about referencing env vars for args in powershell (#173) c46c9c2
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n committed Oct 17, 2023
1 parent 059285c commit 622c49f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/guides/args_guide.doctree
Binary file not shown.
3 changes: 3 additions & 0 deletions _sources/guides/args_guide.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ The resulting task can be run like:
poe passby --planet mars
.. TIP::
For PowerShell tasks, the variable needs to be referenced as an environment variable in the shell code, e.g., :code:`$env:planet`.

Arguments for script tasks
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 4 additions & 0 deletions guides/args_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ <h2>Arguments for cmd and shell tasks<a class="headerlink" href="#arguments-for-
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>poe<span class="w"> </span>passby<span class="w"> </span>--planet<span class="w"> </span>mars
</pre></div>
</div>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>For PowerShell tasks, the variable needs to be referenced as an environment variable in the shell code, e.g., <code class="code docutils literal notranslate"><span class="pre">$env:planet</span></code>.</p>
</div>
</section>
<section id="arguments-for-script-tasks">
<h2>Arguments for script tasks<a class="headerlink" href="#arguments-for-script-tasks" title="Permalink to this heading">#</a></h2>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 622c49f

Please sign in to comment.