1
0
mirror of https://github.com/go-task/task.git synced 2025-07-05 00:58:54 +02:00

rename Cmd.Params to Cmd.Vars

This commit is contained in:
Andrey Nering
2017-07-05 20:07:24 -03:00
parent e1fc3aa4fb
commit 06d80e92eb
5 changed files with 60 additions and 69 deletions

View File

@ -15,7 +15,7 @@ func TestCmdParse(t *testing.T) {
yamlDep = `"task-name"`
yamlTaskCall = `
task: another-task
params:
vars:
PARAM1: VALUE1
PARAM2: VALUE2
`
@ -33,7 +33,7 @@ params:
{
yamlTaskCall,
&task.Cmd{},
&task.Cmd{Task: "another-task", Params: task.Params{"PARAM1": "VALUE1", "PARAM2": "VALUE2"}},
&task.Cmd{Task: "another-task", Vars: task.Vars{"PARAM1": "VALUE1", "PARAM2": "VALUE2"}},
},
{
yamlDep,
@ -43,7 +43,7 @@ params:
{
yamlTaskCall,
&task.Dep{},
&task.Dep{Task: "another-task", Params: task.Params{"PARAM1": "VALUE1", "PARAM2": "VALUE2"}},
&task.Dep{Task: "another-task", Vars: task.Vars{"PARAM1": "VALUE1", "PARAM2": "VALUE2"}},
},
}
for _, test := range tests {