Skip to content

Commit

Permalink
deploy: fdc9245
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 27, 2024
1 parent 3d6ef28 commit 47852cc
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
1 change: 1 addition & 0 deletions man/en/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ <h3 id="attributes"><a class="header" href="#attributes">Attributes</a></h3>
<tr><td><code>[script(COMMAND)]</code><sup>1.32.0</sup></td><td>recipe</td><td>Execute recipe as a script interpreted by <code>COMMAND</code>. See <a href="script-recipes.html">script recipes</a> for more details.</td></tr>
<tr><td><code>[unix]</code><sup>1.8.0</sup></td><td>recipe</td><td>Enable recipe on Unixes. (Includes MacOS).</td></tr>
<tr><td><code>[windows]</code><sup>1.8.0</sup></td><td>recipe</td><td>Enable recipe on Windows.</td></tr>
<tr><td><code>[working-directory(PATH)]</code><sup>master</sup></td><td>recipe</td><td>Set recipe working directory. <code>PATH</code> may be relative or absolute. If relative, it is interpreted relative to the default working directory.</td></tr>
</tbody></table>
</div>
<p>A recipe can have multiple attributes, either on multiple lines:</p>
Expand Down
19 changes: 17 additions & 2 deletions man/en/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,8 @@ <h4 id="makefile-syntax-highlighting"><a class="header" href="#makefile-syntax-h
$ just bar
/subdir
</code></pre>
<p>You can override working directory with <code>set working-directory := '…'</code>, whose value
is relative to the default working directory.</p>
<p>You can override the working directory for all recipes with
<code>set working-directory := '…'</code>:</p>
<pre><code class="language-just">set working-directory := 'bar'

@foo:
Expand All @@ -853,6 +853,20 @@ <h4 id="makefile-syntax-highlighting"><a class="header" href="#makefile-syntax-h
$ just foo
/home/bob/bar
</code></pre>
<p>You can override the working directory for a specific recipe with the
<code>working-directory</code> attribute<sup>master</sup>:</p>
<pre><code class="language-just">[working-directory: 'bar']
@foo:
pwd
</code></pre>
<pre><code class="language-console">$ pwd
/home/bob
$ just foo
/home/bob/bar
</code></pre>
<p>The argument to the <code>working-directory</code> setting or <code>working-directory</code>
attribute may be absolute or relative. If it is relative it is interpreted
relative to the default working directory.</p>
<div style="break-before: page; page-break-before: always;"></div><h3 id="aliases"><a class="header" href="#aliases">Aliases</a></h3>
<p>Aliases allow recipes to be invoked on the command line with alternative names:</p>
<pre><code class="language-just">alias b := build
Expand Down Expand Up @@ -1675,6 +1689,7 @@ <h5 id="xdg-directories1230"><a class="header" href="#xdg-directories1230">XDG D
<tr><td><code>[script(COMMAND)]</code><sup>1.32.0</sup></td><td>recipe</td><td>Execute recipe as a script interpreted by <code>COMMAND</code>. See <a href="script-recipes.html">script recipes</a> for more details.</td></tr>
<tr><td><code>[unix]</code><sup>1.8.0</sup></td><td>recipe</td><td>Enable recipe on Unixes. (Includes MacOS).</td></tr>
<tr><td><code>[windows]</code><sup>1.8.0</sup></td><td>recipe</td><td>Enable recipe on Windows.</td></tr>
<tr><td><code>[working-directory(PATH)]</code><sup>master</sup></td><td>recipe</td><td>Set recipe working directory. <code>PATH</code> may be relative or absolute. If relative, it is interpreted relative to the default working directory.</td></tr>
</tbody></table>
</div>
<p>A recipe can have multiple attributes, either on multiple lines:</p>
Expand Down
2 changes: 1 addition & 1 deletion man/en/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion man/en/searchindex.json

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions man/en/working-directory.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ <h3 id="working-directory"><a class="header" href="#working-directory">Working D
$ just bar
/subdir
</code></pre>
<p>You can override working directory with <code>set working-directory := '…'</code>, whose value
is relative to the default working directory.</p>
<p>You can override the working directory for all recipes with
<code>set working-directory := '…'</code>:</p>
<pre><code class="language-just">set working-directory := 'bar'

@foo:
Expand All @@ -185,6 +185,20 @@ <h3 id="working-directory"><a class="header" href="#working-directory">Working D
$ just foo
/home/bob/bar
</code></pre>
<p>You can override the working directory for a specific recipe with the
<code>working-directory</code> attribute<sup>master</sup>:</p>
<pre><code class="language-just">[working-directory: 'bar']
@foo:
pwd
</code></pre>
<pre><code class="language-console">$ pwd
/home/bob
$ just foo
/home/bob/bar
</code></pre>
<p>The argument to the <code>working-directory</code> setting or <code>working-directory</code>
attribute may be absolute or relative. If it is relative it is interpreted
relative to the default working directory.</p>

</main>

Expand Down

0 comments on commit 47852cc

Please sign in to comment.