1
0
mirror of https://github.com/go-task/task.git synced 2025-03-05 15:05:42 +02:00

Fix duplicate task name on "Short task syntax" example

To make it a valid YAML file and avoid the error:

```
yaml: unmarshal errors:
  line 6: mapping key "build" already defined at line 4
```
This commit is contained in:
Victor Nogueira 2020-12-07 13:00:25 +02:00 committed by GitHub
parent 9f125502f8
commit f5eb80759b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,7 +865,7 @@ $ task default
## Short task syntax ## Short task syntax
Starting on Task v3, you can now write tasks with a shorter syntax if they Starting on Task v3, you can now write tasks with a shorter syntax if they
have the default settings (e.g. no custom `env:`, `vars:`, `silent:` , etc): have the default settings (e.g. no custom `env:`, `vars:`, `desc:`, `silent:` , etc):
```yaml ```yaml
version: '3' version: '3'
@ -873,7 +873,7 @@ version: '3'
tasks: tasks:
build: go build -v -o ./app{{exeExt}} . build: go build -v -o ./app{{exeExt}} .
build: run:
- task: build - task: build
- ./app{{exeExt}} -h localhost -p 8080 - ./app{{exeExt}} -h localhost -p 8080
``` ```