From 17c3a67be6099dc98241af2108745332ead66146 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sun, 5 Mar 2017 17:10:20 -0300 Subject: [PATCH] Fix Taskvar file documentation --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f3a32ba2..64ca8afb 100644 --- a/README.md +++ b/README.md @@ -61,12 +61,12 @@ setvar: The above sample saves the path into a new variable which is then again echoed. You can use environment variables, task level variables and a file called -`Variables` as source of variables. +`Taskvars.yml` (or `Taskvars.toml` or `Taskvars.json`) as source of variables. They are evaluated in the following order: -Task local variables are overwritten by variables found in `Variables`. -Variables found in `Variables` are overwritten with variables from the +Task local variables are overwritten by variables found in `Taskvars` file. +Variables found in `Taskvars` file are overwritten with variables from the environment. The output of the last command is stored in the environment. So you can do something like this: @@ -118,7 +118,6 @@ printos: - echo '{{OS}} {{ARCH}}' - "echo '{{if eq OS \"windows\"}}windows-command{{else}}unix-command{{end}}'" - echo 'Is SH? {{IsSH}}' - ``` ### Running task in another dir