Skip to content

Commit

Permalink
Parsing multitasks, ok and failed task groups now
Browse files Browse the repository at this point in the history
  • Loading branch information
kcmerrill committed Mar 24, 2017
1 parent 6df096d commit 3ff4646
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions alfred/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ff4646

Please sign in to comment.