chore(website): sync translations (#1145)

This commit is contained in:
task-bot
2023-05-06 18:55:50 -03:00
committed by GitHub
parent 7ec5cac56b
commit bf043f411b
36 changed files with 284 additions and 248 deletions

View File

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