Merge branch 'master' into feature/include

This commit is contained in:
Andrey Nering
2018-10-13 16:40:32 -03:00
21 changed files with 1297 additions and 807 deletions

View File

@@ -14,9 +14,12 @@ import (
// Taskfile reads a Taskfile for a given directory
func Taskfile(dir string) (*taskfile.Taskfile, error) {
path := filepath.Join(dir, "Taskfile.yml")
if _, err := os.Stat(path); err != nil {
return nil, fmt.Errorf(`No Taskfile.yml found. Use "task --init" to create a new one`)
}
t, err := readTaskfile(path)
if err != nil {
return nil, fmt.Errorf(`No Taskfile.yml found. Use "task --init" to create a new one`)
return nil, err
}
for namespace, path := range t.Includes {