From 3ff46460f8473c9dc1a1e01c5e805441777f2240 Mon Sep 17 00:00:00 2001 From: kc merrill Date: Fri, 24 Mar 2017 12:20:31 -0600 Subject: [PATCH] Parsing multitasks, ok and failed task groups now --- alfred/task.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/alfred/task.go b/alfred/task.go index 792389c..8832d53 100644 --- a/alfred/task.go +++ b/alfred/task.go @@ -370,6 +370,24 @@ func (t *Task) Prepare(args []string, vars map[string]string) bool { return false } + if tasksOk, tasksOkTranslated := t.template(t.Ok); tasksOk { + t.Ok = tasksOkTranslated + } else { + return false + } + + if tasksFail, tasksFailTranslated := t.template(t.Fail); tasksFail { + t.Fail = tasksFailTranslated + } else { + return false + } + + if multiFail, multiTranslated := t.template(t.Multitask); multiFail { + t.Multitask = multiTranslated + } else { + return false + } + if dirOk, dirTranslated := t.template(t.Dir); dirOk { t.Dir = dirTranslated } else {