1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

fix: silent should be processed via taskCall

This commit is contained in:
Pete Davison 2023-06-15 16:13:26 +00:00 committed by Andrey Nering
parent 755acd616c
commit 36565bbbd2

View File

@ -97,15 +97,16 @@ func (c *Cmd) UnmarshalYAML(node *yaml.Node) error {
// A task call
var taskCall struct {
Task string
Vars *Vars
For *For
Task string
Vars *Vars
For *For
Silent bool
}
if err := node.Decode(&taskCall); err == nil && taskCall.Task != "" {
c.Task = taskCall.Task
c.Vars = taskCall.Vars
c.For = taskCall.For
c.Silent = cmdStruct.Silent
c.Silent = taskCall.Silent
return nil
}