chore: sync translations (#1154)

This commit is contained in:
task-bot
2023-05-06 21:24:46 -03:00
committed by GitHub
parent 51c2a104b2
commit 45dd77ad6d
32 changed files with 279 additions and 257 deletions

View File

@@ -17,12 +17,10 @@ task [--flags] [tasks...] [-- CLI_ARGS...]
:::tip
如果 `--` 给出,所有剩余参数将被分配给一个特殊的 `CLI_ARGS` 变量
:::
| 缩写 | 标志 | 类型 | 默认 | 描述 |
| ---- | --------------------------- | -------- | -------------------------------- | --------------------------------------------------------------------------------------------------- |
| `-c` | `--color` | `bool` | `true` | 彩色输出。 默认开启。 设置为 `false` 或使用 `NO_COLOR=1` 禁用。 |
@@ -78,11 +76,9 @@ Task 有时会以特定的退出代码退出。 这些代码分为三组,范
这些代码也可以在存储库的 [`errors/errors.go`](https://github.com/go-task/task/blob/main/errors/errors.go) 中找到。
:::info
当使用 `-x`/`--exit-code` 标志运行 Task 时,任何失败命令的退出代码都将传递给用户。
When Task is run with the `-x`/`--exit-code` flag, the exit code of any failed commands will be passed through to the user instead.
:::
## JSON 输出
`--json` 标志与 `--list``--list-all` 标志结合使用时,将输出具有以下结构的 JSON 对象:
@@ -169,7 +165,6 @@ Task 有时会以特定的退出代码退出。 这些代码分为三组,范
:::info
像下面这样只赋值一个字符串,和把这个值设置到 `taskfile` 属性是一样的。
```yaml
@@ -179,7 +174,6 @@ includes:
:::
### Variable
| 属性 | 类型 | 默认 | 描述 |
@@ -189,7 +183,6 @@ includes:
:::info
静态和动态变量有不同的语法,如下所示:
```yaml
@@ -201,7 +194,6 @@ vars:
:::
### Task
| 属性 | 类型 | 默认 | 描述 |
@@ -233,7 +225,6 @@ vars:
:::info
这些替代语法可用。 他们会将给定值设置为 `cmds`,其他所有内容都将设置为其默认值:
```yaml
@@ -250,7 +241,6 @@ tasks:
:::
#### Command
| 属性 | 类型 | 默认 | 描述 |
@@ -267,7 +257,6 @@ tasks:
:::info
如果以字符串形式给出,该值将分配给 `cmd`
```yaml
@@ -280,7 +269,6 @@ tasks:
:::
#### Dependency
| 属性 | 类型 | 默认 | 描述 |
@@ -290,7 +278,6 @@ tasks:
:::tip
如果你不想设置额外的变量,将依赖关系声明为一个字符串列表就足够了(它们将被分配给 `task`)。
```yaml
@@ -301,7 +288,6 @@ tasks:
:::
#### Precondition
| 属性 | 类型 | 默认 | 描述 |
@@ -311,7 +297,6 @@ tasks:
:::tip
如果你不想设置不同的消息,你可以像这样声明一个前提条件,值将被分配给 `sh`
```yaml