1
0
mirror of https://github.com/go-task/task.git synced 2025-03-23 21:29:29 +02:00

rename: readTaskvarsFile() -> readTaskvars()

This commit is contained in:
Andrey Nering 2017-07-08 15:10:01 -03:00
parent 0da130ee2c
commit 81b0ffb7f4

View File

@ -31,7 +31,7 @@ func (e *Executor) ReadTaskfile() error {
if err := mergo.MapWithOverwrite(&e.Tasks, osTasks); err != nil {
return err
}
return e.readTaskvarsFile()
return e.readTaskvars()
}
func (e *Executor) readTaskfileData(path string) (tasks map[string]*Task, err error) {
@ -41,7 +41,7 @@ func (e *Executor) readTaskfileData(path string) (tasks map[string]*Task, err er
return nil, taskFileNotFound{path}
}
func (e *Executor) readTaskvarsFile() error {
func (e *Executor) readTaskvars() error {
file := filepath.Join(e.Dir, TaskvarsFilePath)
if b, err := ioutil.ReadFile(file + ".yml"); err == nil {