From f5eb80759b0b44411ae6a341e0319d9c1f9d8d48 Mon Sep 17 00:00:00 2001 From: Victor Nogueira Date: Mon, 7 Dec 2020 13:00:25 +0200 Subject: [PATCH] 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 ``` --- docs/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 54fb293c..38e65d5b 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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 ```