mirror of
https://github.com/casey/just.git
synced 2024-11-22 10:26:26 +03:00
Compare commits
2 Commits
08f6ca6db2
...
c569ce478f
Author | SHA1 | Date | |
---|---|---|---|
|
c569ce478f | ||
|
a5fab75a24 |
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user