mirror of
https://github.com/go-task/task.git
synced 2025-03-03 14:52:13 +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:
parent
9f125502f8
commit
f5eb80759b
@ -865,7 +865,7 @@ $ task default
|
||||
## Short task syntax
|
||||
|
||||
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
|
||||
version: '3'
|
||||
@ -873,7 +873,7 @@ version: '3'
|
||||
tasks:
|
||||
build: go build -v -o ./app{{exeExt}} .
|
||||
|
||||
build:
|
||||
run:
|
||||
- task: build
|
||||
- ./app{{exeExt}} -h localhost -p 8080
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user