From 6f74c2d8236514b02374db25877c10dfe0855920 Mon Sep 17 00:00:00 2001 From: atar-axis Date: Thu, 11 Jan 2018 13:10:12 +0100 Subject: [PATCH] Added "passing variables to dependencies" (#85) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3a8839dc..8389019f 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,24 @@ css: If there are more than one dependency, they always run in parallel for better performance. +If you want to pass information to dependencies, you can do that the same manner as you would to [call another task](#calling-another-task): + +```yml +default: + deps: + - task: echo_sth + vars: {TEXT: "before 1"} + - task: echo_sth + vars: {TEXT: "before 2"} + cmds: + - echo "after" + +echo_sth: + cmds: + - echo {{.TEXT}} +``` + + ### Calling another task When a task has many dependencies, they are executed concurrently. This will