1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 10:26:26 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
casey
c569ce478f deploy: bac31338d09540253922149e8928324ea0a4431e 2022-10-25 23:58:40 +00:00
casey
a5fab75a24 deploy: 8b7640b633 2022-10-25 23:34:07 +00:00
5 changed files with 42 additions and 2 deletions

View File

@ -155,6 +155,7 @@ foo:
<tr><td><code>ignore-comments</code></td><td>boolean</td><td>False</td><td>Ignore recipe lines beginning with <code>#</code>.</td></tr>
<tr><td><code>positional-arguments</code></td><td>boolean</td><td>False</td><td>Pass positional arguments.</td></tr>
<tr><td><code>shell</code></td><td><code>[COMMAND, ARGS…]</code></td><td>-</td><td>Set the command used to invoke recipes and evaluate backticks.</td></tr>
<tr><td><code>tempdir</code></td><td>string</td><td>-</td><td>Create temporary directories in <code>tempdir</code> instead of the system default temporary directory.</td></tr>
<tr><td><code>windows-powershell</code></td><td>boolean</td><td>False</td><td>Use PowerShell on Windows as default shell. (Deprecated. Use <code>windows-shell</code> instead.</td></tr>
<tr><td><code>windows-shell</code></td><td><code>[COMMAND, ARGS…]</code></td><td>-</td><td>Set the command used to invoke recipes and evaluate backticks.</td></tr>
</tbody></table>

View File

@ -167,6 +167,25 @@ Foo!
#!/usr/bin/env bash
echo 'Bar!'
Bar!
</code></pre>
<p><code>just</code> normally prints error messages when a recipe line fails. These error
messages can be suppressed using the <code>[no-exit-message]</code> attribute. You may find
this especially useful with a recipe that recipe wraps a tool:</p>
<pre><code class="language-make">git *args:
@git {{args}}
</code></pre>
<pre><code class="language-sh">$ just git status
fatal: not a git repository (or any of the parent directories): .git
error: Recipe `git` failed on line 2 with exit code 128
</code></pre>
<p>Add the attribute to suppress the exit error message when the tool exits with a
non-zero code:</p>
<pre><code class="language-make">[no-exit-message]
git *args:
@git {{args}}
</code></pre>
<pre><code class="language-sh">$ just git status
fatal: not a git repository (or any of the parent directories): .git
</code></pre>
</main>

View File

@ -620,6 +620,7 @@ foo:
<tr><td><code>ignore-comments</code></td><td>boolean</td><td>False</td><td>Ignore recipe lines beginning with <code>#</code>.</td></tr>
<tr><td><code>positional-arguments</code></td><td>boolean</td><td>False</td><td>Pass positional arguments.</td></tr>
<tr><td><code>shell</code></td><td><code>[COMMAND, ARGS…]</code></td><td>-</td><td>Set the command used to invoke recipes and evaluate backticks.</td></tr>
<tr><td><code>tempdir</code></td><td>string</td><td>-</td><td>Create temporary directories in <code>tempdir</code> instead of the system default temporary directory.</td></tr>
<tr><td><code>windows-powershell</code></td><td>boolean</td><td>False</td><td>Use PowerShell on Windows as default shell. (Deprecated. Use <code>windows-shell</code> instead.</td></tr>
<tr><td><code>windows-shell</code></td><td><code>[COMMAND, ARGS…]</code></td><td>-</td><td>Set the command used to invoke recipes and evaluate backticks.</td></tr>
</tbody></table>
@ -1567,6 +1568,25 @@ Foo!
echo 'Bar!'
Bar!
</code></pre>
<p><code>just</code> normally prints error messages when a recipe line fails. These error
messages can be suppressed using the <code>[no-exit-message]</code> attribute. You may find
this especially useful with a recipe that recipe wraps a tool:</p>
<pre><code class="language-make">git *args:
@git {{args}}
</code></pre>
<pre><code class="language-sh">$ just git status
fatal: not a git repository (or any of the parent directories): .git
error: Recipe `git` failed on line 2 with exit code 128
</code></pre>
<p>Add the attribute to suppress the exit error message when the tool exits with a
non-zero code:</p>
<pre><code class="language-make">[no-exit-message]
git *args:
@git {{args}}
</code></pre>
<pre><code class="language-sh">$ just git status
fatal: not a git repository (or any of the parent directories): .git
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h3 id="selecting-recipes-to-run-with-an-interactive-chooser"><a class="header" href="#selecting-recipes-to-run-with-an-interactive-chooser">Selecting Recipes to Run With an Interactive Chooser</a></h3>
<p>The <code>--choose</code> subcommand makes <code>just</code> invoke a chooser to select which recipes to run. Choosers should read lines containing recipe names from standard input and print one or more of those names separated by spaces to standard output.</p>
<p>Because there is currently no way to run a recipe that requires arguments with <code>--choose</code>, such recipes will not be given to the chooser. Private recipes and aliases are also skipped.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long