Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(en,ja): commands: add --max-errors option #2230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions content/en/docs/1.get-started/4.commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ npm run generate --fail-on-error
```
::

When called the `--max-errors` argument with a number the command returns after the number of error occurred.

::code-group
```bash [Yarn]
yarn generate --max-error=10
```
```bash [NPM]
npm run generate --max-error=10
```
::

## What's next?

::alert{type="next"}
Expand Down
11 changes: 11 additions & 0 deletions content/ja/docs/1.get-started/4.commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ npm run generate --fail-on-error
```
::

`--max-errors`引数 を指定すると、エラーの発生件数により途中で終了させることができます。

::code-group
```bash [Yarn]
yarn generate --max-error=10
```
```bash [NPM]
npm run generate --max-error=10
```
::

## この次は?

::alert{type="next"}
Expand Down